Skip to content

Commit 00cd59d

Browse files
committed
style: Use inline format args
1 parent 4cc64a9 commit 00cd59d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/assert.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,23 +470,23 @@ mod test {
470470
fn into_path_from_pred() {
471471
let pred = convert_path(predicate::eq(path::Path::new("hello.md")));
472472
let case = pred.find_case(false, path::Path::new("hello.md"));
473-
println!("Failing case: {:?}", case);
473+
println!("Failing case: {case:?}");
474474
assert!(case.is_none());
475475
}
476476

477477
#[test]
478478
fn into_path_from_bytes() {
479479
let pred = convert_path(b"hello\n" as &[u8]);
480480
let case = pred.find_case(false, path::Path::new("tests/fixture/hello.txt"));
481-
println!("Failing case: {:?}", case);
481+
println!("Failing case: {case:?}");
482482
assert!(case.is_none());
483483
}
484484

485485
#[test]
486486
fn into_path_from_str() {
487487
let pred = convert_path("hello\n");
488488
let case = pred.find_case(false, path::Path::new("tests/fixture/hello.txt"));
489-
println!("Failing case: {:?}", case);
489+
println!("Failing case: {case:?}");
490490
assert!(case.is_none());
491491
}
492492
}

0 commit comments

Comments
 (0)