don't trigger unnecessary_debug_formatting in tests
This commit is contained in:
parent
a9c61ec1e1
commit
e6a4cf63ad
2 changed files with 9 additions and 2 deletions
|
|
@ -41,3 +41,9 @@ fn main() {
|
|||
let deref_path = DerefPath { path };
|
||||
println!("{:?}", &*deref_path); //~ unnecessary_debug_formatting
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn issue_14345() {
|
||||
let input = std::path::Path::new("/foo/bar");
|
||||
assert!(input.ends_with("baz"), "{input:?}");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue