From 7c27d7291d6e0fa7eb9f81ee73170edc816656a6 Mon Sep 17 00:00:00 2001 From: Carl Suster Date: Thu, 29 Sep 2022 12:49:50 +1000 Subject: [PATCH] Fix clippy warning --- src/symmetric.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/symmetric.rs b/src/symmetric.rs index 01fd8d5..1a35a88 100644 --- a/src/symmetric.rs +++ b/src/symmetric.rs @@ -229,7 +229,7 @@ impl DistMatrix { .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();