rust-lang / rustfmt

Format Rust code
https://rust-lang.github.io/rustfmt/
Apache License 2.0
6.05k stars 888 forks source link

Non-panicking `fmt::Display` for `FileName` #6328

Closed Rawk closed 2 months ago

Rawk commented 2 months ago

Avoid unwrap() by using infallible std::path::Path::display().

Rawk commented 2 months ago

Changed some more places where std::path::Path::display() can be used.