don't trigger unnecessary_debug_formatting in tests

This commit is contained in:
lapla-cogito 2025-03-04 10:50:40 +09:00
parent a9c61ec1e1
commit e6a4cf63ad
No known key found for this signature in database
GPG key ID: B39C71D9F127FF9F
2 changed files with 9 additions and 2 deletions

View file

@ -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:?}");
}