Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
arcresu committed Sep 29, 2022
1 parent 6186e6f commit 7c27d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/symmetric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl<D: Copy> DistMatrix<D> {
.filter_map(|((i, j), &v)| {
let keep =
positions.binary_search(&i).is_ok() && positions.binary_search(&j).is_ok();
keep.then(|| v)
keep.then_some(v)
})
.collect();
let size = positions.len();
Expand Down

0 comments on commit 7c27d72

Please sign in to comment.