Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekker1 committed Dec 29, 2023
1 parent 7c14b21 commit fb9cba4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/pindakaas/src/int/enc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,7 @@ impl IntVarEnc {
// TODO account for bounds (or even better, create IntVarBin)
// TODO old method (which at least respected bounds)
if COUPLE_DOM_PART_TO_ORD {
let x_bin = IntVarBin::from_terms(
terms.iter().copied().map(|(l, i)| (l, i)).collect(),
*l,
*u,
String::from("x"),
);
let x_bin = IntVarBin::from_terms(terms.to_vec(), *l, *u, String::from("x"));
let x_ord = IntVarEnc::Ord(IntVarOrd::from_bounds(
db,
x_bin.lb(),
Expand Down

0 comments on commit fb9cba4

Please sign in to comment.