Skip to content

Commit

Permalink
big oops but integration tests have my back
Browse files Browse the repository at this point in the history
  • Loading branch information
fleupold committed Mar 6, 2024
1 parent 264100e commit de0baf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/driver/src/domain/competition/solution/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl Solution {

// Solutions should not settle the same order twice
let uids: HashSet<_> = self.user_trades().map(|t| t.order().uid).collect();
let other_uids: HashSet<_> = self.user_trades().map(|t| t.order().uid).collect();
let other_uids: HashSet<_> = other.user_trades().map(|t| t.order().uid).collect();
if !uids.is_disjoint(&other_uids) {
return Err(MergeError::DuplicateTrade);
}
Expand Down

0 comments on commit de0baf8

Please sign in to comment.