Skip to content

Commit

Permalink
style: Use inline format args
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 27, 2024
1 parent 4cc64a9 commit 00cd59d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,23 +470,23 @@ 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());
}

#[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());
}

#[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());
}
}

0 comments on commit 00cd59d

Please sign in to comment.