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

Fix compile error in release mode #1517

Merged
merged 3 commits into from Nov 9, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions axum/src/extract/matched_path.rs
Expand Up @@ -125,6 +125,7 @@ where
#[derive(Clone, Debug)]
struct MatchedNestedPath(Arc<str>);

#[allow(unreachable_code)]
davidpdrsn marked this conversation as resolved.
Show resolved Hide resolved
pub(crate) fn set_matched_path_for_request(
id: RouteId,
route_id_to_path: &HashMap<RouteId, Arc<str>>,
Expand All @@ -135,6 +136,7 @@ pub(crate) fn set_matched_path_for_request(
} else {
#[cfg(debug_assertions)]
panic!("should always have a matched path for a route id");
return;
davidpdrsn marked this conversation as resolved.
Show resolved Hide resolved
};

let matched_path = append_nested_matched_path(matched_path, extensions);
Expand Down