From 00cd59d1625e03fb820ef2ab3c52699f406ae293 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 27 Sep 2024 10:57:08 -0500 Subject: [PATCH] style: Use inline format args --- src/assert.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assert.rs b/src/assert.rs index ef3a8a6..684f582 100644 --- a/src/assert.rs +++ b/src/assert.rs @@ -470,7 +470,7 @@ mod test { fn into_path_from_pred() { let pred = convert_path(predicate::eq(path::Path::new("hello.md"))); let case = pred.find_case(false, path::Path::new("hello.md")); - println!("Failing case: {:?}", case); + println!("Failing case: {case:?}"); assert!(case.is_none()); } @@ -478,7 +478,7 @@ mod test { fn into_path_from_bytes() { let pred = convert_path(b"hello\n" as &[u8]); let case = pred.find_case(false, path::Path::new("tests/fixture/hello.txt")); - println!("Failing case: {:?}", case); + println!("Failing case: {case:?}"); assert!(case.is_none()); } @@ -486,7 +486,7 @@ mod test { fn into_path_from_str() { let pred = convert_path("hello\n"); let case = pred.find_case(false, path::Path::new("tests/fixture/hello.txt")); - println!("Failing case: {:?}", case); + println!("Failing case: {case:?}"); assert!(case.is_none()); } }