From 618341d9dd90d433160915130ad04a2d6fc59916 Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Sun, 8 Dec 2024 13:42:32 -0800 Subject: [PATCH] refactor: remove raw string hashes --- 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 427db8f20d..4dab32f1c0 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"# + r"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"# + r"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, r"Invalid URL: array types are not supported"); } }