From 370ad07e75ae3d7113ac87b469e5ebcf9ba20489 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sat, 12 Nov 2022 20:54:29 -0600 Subject: [PATCH] Remove debug_assert in matched_path (#1527) --- axum/src/extract/matched_path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axum/src/extract/matched_path.rs b/axum/src/extract/matched_path.rs index 9ad5457b..064a9726 100644 --- a/axum/src/extract/matched_path.rs +++ b/axum/src/extract/matched_path.rs @@ -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::()), None)); + debug_assert!(matches!(extensions.remove::(), None)); } else { extensions.insert(MatchedPath(matched_path)); extensions.remove::();