mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
clippy
This commit is contained in:
parent
488a4ca730
commit
88a9fab865
1 changed files with 2 additions and 3 deletions
|
@ -331,9 +331,8 @@ impl Aliases {
|
|||
// without allocating.
|
||||
let mut some_equivalent = false;
|
||||
for (i, var) in new_type_variables.iter().enumerate() {
|
||||
for j in (i + 1)..new_type_variables.len() {
|
||||
let other_var = new_type_variables[j];
|
||||
some_equivalent = some_equivalent || *var == other_var;
|
||||
for other_var in new_type_variables.iter().skip(i + 1) {
|
||||
some_equivalent = some_equivalent || var == other_var;
|
||||
}
|
||||
}
|
||||
some_equivalent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue