Some clippy fixes for 1.36
This commit is contained in:
@@ -191,7 +191,7 @@ impl ProjectWorkspace {
|
||||
}
|
||||
}
|
||||
|
||||
let libstd = sysroot.std().and_then(|it| sysroot_crates.get(&it).map(|&it| it));
|
||||
let libstd = sysroot.std().and_then(|it| sysroot_crates.get(&it).copied());
|
||||
|
||||
let mut pkg_to_lib_crate = FxHashMap::default();
|
||||
let mut pkg_crates = FxHashMap::default();
|
||||
|
||||
@@ -94,7 +94,7 @@ impl SysrootCrate {
|
||||
self.root(sysroot).parent().unwrap()
|
||||
}
|
||||
pub fn deps<'a>(self, sysroot: &'a Sysroot) -> impl Iterator<Item = SysrootCrate> + 'a {
|
||||
sysroot.crates[self].deps.iter().map(|&it| it)
|
||||
sysroot.crates[self].deps.iter().copied()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user