Skip to content

Commit 6a8956c

Browse files
committed
Another set use
1 parent 72c573e commit 6a8956c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chalk-integration/src/lowering.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -571,15 +571,15 @@ impl LowerWithEnv for [QuantifiedInlineBound] {
571571
}
572572
}
573573

574-
let mut regular_traits = Vec::new();
575-
let mut auto_traits = Vec::new();
574+
let mut regular_traits = IndexSet::new();
575+
let mut auto_traits = IndexSet::new();
576576

577577
for b in self {
578578
let id = env.lookup_trait(trait_identifier(&b.bound))?;
579579
if env.auto_trait(id) {
580-
auto_traits.push((b, id))
580+
auto_traits.insert((b, id));
581581
} else {
582-
regular_traits.push((b, id))
582+
regular_traits.insert((b, id));
583583
}
584584
}
585585

0 commit comments

Comments
 (0)