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

feat(router): Add missing unimplemented fallback to RoutesBuilder #1864

Conversation

tottoto
Copy link
Collaborator

@tottoto tottoto commented Aug 8, 2024

Adds missing unimplemented fallback routing when constructing Routes via Routes::default or RoutesBuilder.

impl Default for Routes {
fn default() -> Self {
let router = axum::Router::new().fallback(unimplemented);
Self { router }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest inlining the router binding directly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated.

@tottoto tottoto force-pushed the add-missing-unimplemented-fallback-to-routesbuilder branch from c810d83 to d6d2806 Compare August 9, 2024 16:49
@djc djc added this pull request to the merge queue Aug 9, 2024
Merged via the queue into hyperium:master with commit 7f46d3a Aug 9, 2024
16 checks passed
@tottoto tottoto deleted the add-missing-unimplemented-fallback-to-routesbuilder branch August 11, 2024 21:21
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.

2 participants