Some clippy fixes

This commit is contained in:
Jeremy Kolb 2020-04-19 15:15:49 -04:00
parent 24af351018
commit d7f3d858ad
11 changed files with 16 additions and 19 deletions

View file

@ -327,7 +327,7 @@ impl ExternSource {
self.extern_paths.iter().find_map(|(root_path, id)| {
if let Ok(rel_path) = path.strip_prefix(root_path) {
let rel_path = RelativePathBuf::from_path(rel_path).ok()?;
Some((id.clone(), rel_path))
Some((*id, rel_path))
} else {
None
}