axum: fix new formatting string clippy lint (#3162)

This commit is contained in:
David Mládek
2025-01-08 20:03:47 +01:00
committed by GitHub
parent 18a99da0b0
commit b5236eaff4
+4 -4
View File
@@ -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"
@@ -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"