mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
update with new clippy lints
This commit is contained in:
parent
51b360b578
commit
0dd2cec09a
22 changed files with 53 additions and 77 deletions
|
@ -262,11 +262,7 @@ fn check_valid_range(
|
|||
range: VariableSubsSlice,
|
||||
mode: Mode,
|
||||
) -> Outcome {
|
||||
let slice = subs
|
||||
.get_subs_slice(range)
|
||||
.iter()
|
||||
.copied()
|
||||
.collect::<Vec<_>>();
|
||||
let slice = subs.get_subs_slice(range).to_vec();
|
||||
|
||||
let mut it = slice.iter().peekable();
|
||||
while let Some(&possible_var) = it.next() {
|
||||
|
@ -1432,7 +1428,7 @@ fn unify_recursion(
|
|||
} => {
|
||||
// NOTE: structure and other_structure may not be unified yet, but will be
|
||||
// we should not do that here, it would create an infinite loop!
|
||||
let name = (*opt_name).or_else(|| *other_opt_name);
|
||||
let name = (*opt_name).or(*other_opt_name);
|
||||
merge(
|
||||
subs,
|
||||
ctx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue