Remove debug_assert in matched_path (#1527)

This commit is contained in:
BBaoVanC
2022-11-13 02:54:29 +00:00
committed by GitHub
parent afa13006cf
commit 370ad07e75
+1 -1
View File
@@ -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>();