diff --git a/axum-extra/src/json_lines.rs b/axum-extra/src/json_lines.rs index 8b04825f..215f4247 100644 --- a/axum-extra/src/json_lines.rs +++ b/axum-extra/src/json_lines.rs @@ -243,7 +243,7 @@ mod tests { let res = client .post("/") .body( - vec![ + [ "{\"id\":1}", "{\"id\":2}", "{\"id\":3}", diff --git a/axum/src/extract/matched_path.rs b/axum/src/extract/matched_path.rs index c4f9984e..c3bd7b45 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!(extensions.remove::(), None)); + debug_assert!(extensions.remove::().is_none()); } else { extensions.insert(MatchedPath(matched_path)); extensions.remove::();