Skip to content

Commit b062b87

Browse files
committed
Fix clippy lint: replace filter_map identity with flatten()
1 parent cb3bdbe commit b062b87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/bnb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ fn bnb_tuple_metric_respects_ordering_requirement() {
221221
let cs = CoinSelector::new(&candidates);
222222
let solutions = cs.bnb_solutions(((OrderSensitive, 1.0), (NoOrderMetric, 1.0)));
223223

224-
let first_solution = solutions.filter_map(|sol| sol).next();
224+
let first_solution = solutions.flatten().next();
225225
assert!(
226226
first_solution.is_some(),
227227
"expected a solution when ordering is required by any metric"

0 commit comments

Comments
 (0)