mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
clippy clop
This commit is contained in:
parent
df7d017287
commit
b5e4066c49
3 changed files with 6 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue