Closed
Description
I was surprised that there does not seem to be a lint to catch the following. Is it possible that it exists and I am somehow not triggering it?
use camino::Utf8PathBuf;
fn main() {
let path = Utf8PathBuf::from("src/main.rs");
println!("{}", path.to_string()); // to_string is unnecessary since Utf8PathBuf implements Display
println!("{}", path);
}
Metadata
Metadata
Assignees
Labels
No labels