1
0
Fork 0
mirror of https://github.com/tokio-rs/axum.git synced 2025-04-26 13:56:22 +02:00

axum: fix new formatting string clippy lint ()

This commit is contained in:
David Mládek 2025-01-08 20:03:47 +01:00 committed by GitHub
parent 18a99da0b0
commit b5236eaff4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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"