fix new clippy warnings

This commit is contained in:
Dustin J. Mitchell
2021-05-16 09:38:40 -04:00
parent cea5ae87c7
commit cbe11a1d3d
2 changed files with 3 additions and 11 deletions

View File

@@ -58,13 +58,7 @@ impl WorkingSet {
self.by_index
.iter()
.enumerate()
.filter_map(|(index, uuid)| {
if let Some(uuid) = uuid {
Some((index, *uuid))
} else {
None
}
})
.filter_map(|(index, uuid)| uuid.as_ref().map(|uuid| (index, *uuid)))
}
}