From fd11d8efde4895a2159a29dcd586a7db99917057 Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Sun, 8 Dec 2024 17:49:09 -0800 Subject: [PATCH] Remove raw string hashes (#3071) --- axum/src/extract/path/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/axum/src/extract/path/mod.rs b/axum/src/extract/path/mod.rs index 427db8f2..04198753 100644 --- a/axum/src/extract/path/mod.rs +++ b/axum/src/extract/path/mod.rs @@ -949,7 +949,7 @@ mod tests { let body = res.text().await; assert_eq!( body, - r#"Invalid URL: Cannot parse `res` with value `123123-123-123123`: UUID parsing failed: invalid group count: expected 5, found 3"# + "Invalid URL: Cannot parse `res` with value `123123-123-123123`: UUID parsing failed: invalid group count: expected 5, found 3" ); } @@ -970,7 +970,7 @@ mod tests { let body = res.text().await; assert_eq!( body, - r#"Invalid URL: Cannot parse `res` with value `456456-123-456456`: UUID parsing failed: invalid group count: expected 5, found 3"# + "Invalid URL: Cannot parse `res` with value `456456-123-456456`: UUID parsing failed: invalid group count: expected 5, found 3" ); } @@ -992,6 +992,6 @@ mod tests { let client = TestClient::new(app); let res = client.get("/te/st/_thing").await; let body = res.text().await; - assert_eq!(body, r#"Invalid URL: array types are not supported"#); + assert_eq!(body, "Invalid URL: array types are not supported"); } }