Skip to content

Commit

Permalink
driveby turn lambda into ExtensionSet::union
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Dec 12, 2023
1 parent 4c4bb87 commit b8de62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/infer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ impl UnificationContext {
Constraint::Plus(_, other_m) => solutions.get(&self.resolve(*other_m)),
Constraint::Equal(_) => None,
})
.fold(ExtensionSet::new(), |a, b| a.union(b));
.fold(ExtensionSet::new(), ExtensionSet::union);

for m in cc.iter() {
self.add_solution(*m, combined_solution.clone());
Expand Down

0 comments on commit b8de62f

Please sign in to comment.