Fix misc warnings

This commit is contained in:
David Pedersen 2023-07-16 12:58:35 +02:00
parent a1c27e66e5
commit 85044b7c10
2 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ mod tests {
let res = client
.post("/")
.body(
vec![
[
"{\"id\":1}",
"{\"id\":2}",
"{\"id\":3}",

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!(extensions.remove::<MatchedPath>(), None));
debug_assert!(extensions.remove::<MatchedPath>().is_none());
} else {
extensions.insert(MatchedPath(matched_path));
extensions.remove::<MatchedNestedPath>();