We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
str
Path
1 parent 7c7a594 commit 0038430Copy full SHA for 0038430
src/librustc/session/filesearch.rs
@@ -75,7 +75,7 @@ impl<'a> FileSearch<'a> {
75
let files = files.filter_map(|p| p.ok().map(|s| s.path()))
76
.collect::<Vec<_>>();
77
fn is_rlib(p: &Path) -> bool {
78
- p.extension().and_then(|s| s.to_str()) == Some("rlib")
+ p.extension() == Some("rlib".as_ref())
79
}
80
// Reading metadata out of rlibs is faster, and if we find both
81
// an rlib and a dylib we only read one of the files of
0 commit comments