Skip to content

Commit

Permalink
Fix misc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn committed Jul 17, 2023
1 parent a1c27e6 commit 85044b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion axum-extra/src/json_lines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ mod tests {
let res = client
.post("/")
.body(
vec![
[
"{\"id\":1}",
"{\"id\":2}",
"{\"id\":3}",
Expand Down
2 changes: 1 addition & 1 deletion axum/src/extract/matched_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand Down

0 comments on commit 85044b7

Please sign in to comment.