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

Allow Error: Into<Infallible> for Route::{layer, route_layer} #924

Merged
merged 4 commits into from Apr 19, 2022

Conversation

davidpdrsn
Copy link
Member

Fixes #922

Before merging this I'd appreciate it if @lilyball you'd test it and confirm that it works for your use case.

@lilyball
Copy link

@davidpdrsn Yes this works for my use-case. Thank you.

@davidpdrsn davidpdrsn marked this pull request as ready for review April 18, 2022 08:40
@davidpdrsn
Copy link
Member Author

I'm gonna do a release now and since this is a fairly simple change I'll just go a head and merge it.

@davidpdrsn davidpdrsn merged commit ca7ecb1 into main Apr 19, 2022
@davidpdrsn davidpdrsn deleted the err-into-infallible branch April 19, 2022 14:16
davidpdrsn added a commit that referenced this pull request Apr 19, 2022
davidpdrsn added a commit that referenced this pull request Apr 19, 2022
davidpdrsn added a commit that referenced this pull request Apr 19, 2022
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}`

Fixes #922

* changelog
davidpdrsn added a commit that referenced this pull request Jun 11, 2022
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#924)

* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}`

Fixes #922

* changelog

* fixup changelog
davidpdrsn added a commit that referenced this pull request Jun 17, 2022
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#924)

* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}`

Fixes #922

* changelog

* fixup changelog
davidpdrsn added a commit that referenced this pull request Jun 25, 2022
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#924)

* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}`

Fixes #922

* changelog

* fixup changelog
davidpdrsn added a commit that referenced this pull request Jun 25, 2022
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#924)

* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}`

Fixes #922

* changelog

* fixup changelog
davidpdrsn added a commit that referenced this pull request Jun 27, 2022
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#924)

* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}`

Fixes #922

* changelog

* fixup changelog
davidpdrsn added a commit that referenced this pull request Jun 28, 2022
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#924)

* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}`

Fixes #922

* changelog

* fixup changelog
davidpdrsn added a commit that referenced this pull request Jun 28, 2022
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#924)

* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}`

Fixes #922

* changelog

* fixup changelog
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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Router::layer should allow services whose Error: Into<Infallible>
2 participants