clippy clop

This commit is contained in:
Richard Feldman 2020-05-10 15:16:25 -04:00
parent df7d017287
commit b5e4066c49
3 changed files with 6 additions and 2 deletions

View file

@ -36,7 +36,7 @@ impl<'a> LayoutIds<'a> {
});
// Get the id associated with this layout, or default to next_id.
let answer = ids.by_id.get(layout).map(|id| *id).unwrap_or(ids.next_id);
let answer = ids.by_id.get(layout).copied().unwrap_or(ids.next_id);
// If we had to default to next_id, it must not have been found;
// store the ID we're going to return and increment next_id.