Skip to content

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
@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