Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using impl Filter instead of dyn Filter, to be able to send across th… #8

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

Jonke
Copy link
Contributor

@Jonke Jonke commented Mar 28, 2024

This is just using the impl Filter in order to facilitate that it will be possible when runnig a seach query in across awaits (like in a request from axum) the Filter trait need to be sendable if one wants to make dynamic search queries.
Since the ?Sized super trait can't be set on this kind of trait it needs to be in the function signature, which leads it to be set do impl instead of dyn (can't add supertraits to dyn Filter, only to impl Filter)

Copy link
Owner

@keaz keaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@keaz keaz merged commit 571a43d into keaz:main Mar 29, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants