diff --git a/axum/src/extract/path/mod.rs b/axum/src/extract/path/mod.rs index 1b179547b1..e883c643eb 100644 --- a/axum/src/extract/path/mod.rs +++ b/axum/src/extract/path/mod.rs @@ -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"