Implemented clippy improvements

This commit is contained in:
Aaron Power
2018-07-24 14:17:21 +01:00
committed by Dan Gohman
parent d6d1e7253d
commit eed861c6e1
5 changed files with 15 additions and 14 deletions

View File

@@ -1012,7 +1012,7 @@ impl VirtualCopies {
/// Returns `None` if none of the currently active parameters are defined at `ebb`. Otherwise
/// returns `(set_id, argnum)` for an active parameter defined at `ebb`.
fn lookup(&self, ebb: Ebb) -> Option<(u8, usize)> {
self.filter.get(&ebb).map(|t| *t)
self.filter.get(&ebb).cloned()
}
/// Get an iterator of dom-forest nodes corresponding to the current filter.