Skip to content

Commit

Permalink
axum: fix new formatting string clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mladedav committed Jan 8, 2025
1 parent f84105a commit 55c402b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions axum/src/extract/path/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,8 @@ mod tests {
);

let client = TestClient::new(app);
let res = client.get("/resources/123123-123-123123").await;
let body = res.text().await;
let response = client.get("/resources/123123-123-123123").await;
let body = response.text().await;
assert_eq!(
body,
"Invalid URL: Cannot parse `res` with value `123123-123-123123`: UUID parsing failed: invalid group count: expected 5, found 3"
Expand All @@ -999,8 +999,8 @@ mod tests {
);

let client = TestClient::new(app);
let res = client.get("/resources/456456-123-456456/sub/123").await;
let body = res.text().await;
let response = client.get("/resources/456456-123-456456/sub/123").await;
let body = response.text().await;
assert_eq!(
body,
"Invalid URL: Cannot parse `res` with value `456456-123-456456`: UUID parsing failed: invalid group count: expected 5, found 3"
Expand Down

0 comments on commit 55c402b

Please sign in to comment.