Closed MarijnS95 closed 1 year ago
Rust 1.65 stepped up its clippy::needless_borrow game around types and their borrows implementing a certain trait, realizing that &PathBuf already implements AsRef<Path> and doesn't need to be reborrowed as &&PathBuf.
clippy::needless_borrow
&PathBuf
AsRef<Path>
&&PathBuf
Rust 1.65 stepped up its
clippy::needless_borrow
game around types and their borrows implementing a certain trait, realizing that&PathBuf
already implementsAsRef<Path>
and doesn't need to be reborrowed as&&PathBuf
.