mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 15:17:18 +01:00
Remove debug_assert in matched_path (#1527)
This commit is contained in:
parent
afa13006cf
commit
370ad07e75
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ pub(crate) fn set_matched_path_for_request(
|
|||
|
||||
if matched_path.ends_with(NEST_TAIL_PARAM_CAPTURE) {
|
||||
extensions.insert(MatchedNestedPath(matched_path));
|
||||
debug_assert!(matches!(dbg!(extensions.remove::<MatchedPath>()), None));
|
||||
debug_assert!(matches!(extensions.remove::<MatchedPath>(), None));
|
||||
} else {
|
||||
extensions.insert(MatchedPath(matched_path));
|
||||
extensions.remove::<MatchedNestedPath>();
|
||||
|
|
Loading…
Reference in a new issue