-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Allow Error: Into<Infallible>
for Route::{layer, route_layer}
#948
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` Fixes #922 * changelog
jplatte
approved these changes
Apr 19, 2022
daheige
approved these changes
Apr 23, 2022
renancloudwalk
approved these changes
May 1, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just confirmed that all examples are working fine with this breaking change:
the output
ls -d examples/*/ | xargs -I {} bash -c "cd '{}' && cargo check"
Finished dev [unoptimized + debuginfo] target(s) in 0.07s
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.07s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Finished dev [unoptimized + debuginfo] target(s) in 0.09s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
@renancloudwalk thanks but we knew 😊 it breaks if you had |
davidpdrsn
added a commit
that referenced
this pull request
Jun 29, 2022
* Prepare axum-next branch * Remove deprecated `extractor_middleware` function (#1077) * Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#948) * Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#924) * Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` Fixes #922 * changelog * fixup changelog * Panic on overlapping routes in `MethodRouter` (#1102) * Panic on overlapping routes in `MethodRouter` * changelog link * add test to ensure `head` and `get` don't overlap * Fix changelog * Prepare axum-next branch * Remove trailing slash redirects * changelog link * Fix changelog * remove asserting to make make the test more clear * remove tsr related feature * Add `RouterExt::route_with_tsr` * Apply suggestions from code review Co-authored-by: Jonas Platte <jplatte+git@posteo.de> * Update axum-extra/src/routing/mod.rs Co-authored-by: Jonas Platte <jplatte+git@posteo.de> * fix typos in docs * Update axum/CHANGELOG.md Co-authored-by: Jonas Platte <jplatte+git@posteo.de> * mention `RouterExt::route_with_tsr` in the changelog Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #922
Note this is a breaking change so we have to wait until axum 0.6