Remove debug_assert in matched_path (#1527)

This commit is contained in:
BBaoVanC 2022-11-12 20:54:29 -06:00 committed by GitHub
parent afa13006cf
commit 370ad07e75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,7 @@ pub(crate) fn set_matched_path_for_request(
if matched_path.ends_with(NEST_TAIL_PARAM_CAPTURE) { if matched_path.ends_with(NEST_TAIL_PARAM_CAPTURE) {
extensions.insert(MatchedNestedPath(matched_path)); extensions.insert(MatchedNestedPath(matched_path));
debug_assert!(matches!(dbg!(extensions.remove::<MatchedPath>()), None)); debug_assert!(matches!(extensions.remove::<MatchedPath>(), None));
} else { } else {
extensions.insert(MatchedPath(matched_path)); extensions.insert(MatchedPath(matched_path));
extensions.remove::<MatchedNestedPath>(); extensions.remove::<MatchedNestedPath>();