From 7348fb91f9001e6c22dfe72af4725c18aaca0d11 Mon Sep 17 00:00:00 2001 From: Alex Ozdemir Date: Wed, 3 Jan 2024 16:14:23 -0800 Subject: [PATCH] trick the linter --- src/target/aby/assignment/ilp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/target/aby/assignment/ilp.rs b/src/target/aby/assignment/ilp.rs index 0e81eb191..ec79167a6 100644 --- a/src/target/aby/assignment/ilp.rs +++ b/src/target/aby/assignment/ilp.rs @@ -166,9 +166,9 @@ fn build_ilp(c: &Computation, costs: &CostModel) -> SharingMap { ilp.maximize( -conv_vars .values() - .map(|(a, b)| (a, b)) - .chain(term_vars.values().map(|(a, b, _)| (a, b))) - .fold(0.0.into(), |acc: Expression, (v, cost)| acc + *v * *cost), + .cloned() + .chain(term_vars.values().map(|(a, b, _)| (*a, *b))) + .fold(0.0.into(), |acc: Expression, (v, cost)| acc + v * cost), ); let (_opt, solution) = ilp.default_solve().unwrap();