mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-30 06:21:07 +00:00
Fix misc warnings
This commit is contained in:
parent
a1c27e66e5
commit
85044b7c10
@ -243,7 +243,7 @@ mod tests {
|
||||
let res = client
|
||||
.post("/")
|
||||
.body(
|
||||
vec![
|
||||
[
|
||||
"{\"id\":1}",
|
||||
"{\"id\":2}",
|
||||
"{\"id\":3}",
|
||||
|
@ -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>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user