From b5236eaff4782b81e4aff924197c1b05ff3c49c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ml=C3=A1dek?= Date: Wed, 8 Jan 2025 20:03:47 +0100 Subject: [PATCH] axum: fix new formatting string clippy lint (#3162) --- axum/src/extract/path/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"