aboutsummaryrefslogtreecommitdiff
path: root/src/table/table.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-12-11 15:31:47 +0100
committerAlex Auvolat <alex@adnab.me>2023-12-11 15:31:47 +0100
commit85b5a6bcd11c0a7651e4c589569e1935a3d18e46 (patch)
tree5aabcc8e161dfb304514e23e59f9ccf5a52a6d0a /src/table/table.rs
parente4f493b48156e6e30f16fba10f300f6cb5fe0b0d (diff)
downloadgarage-85b5a6bcd11c0a7651e4c589569e1935a3d18e46.tar.gz
garage-85b5a6bcd11c0a7651e4c589569e1935a3d18e46.zip
fix some clippy lints
Diffstat (limited to 'src/table/table.rs')
-rw-r--r--src/table/table.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/table/table.rs b/src/table/table.rs
index 05a0dab1..a5be2910 100644
--- a/src/table/table.rs
+++ b/src/table/table.rs
@@ -209,8 +209,7 @@ impl<F: TableSchema, R: TableReplication> Table<F, R> {
// it takes part, to optimize the detection of a quorum.
let mut write_sets = entries_vec
.iter()
- .map(|(wss, _)| wss.as_ref().iter().map(|ws| ws.as_slice()))
- .flatten()
+ .flat_map(|(wss, _)| wss.as_ref().iter().map(|ws| ws.as_slice()))
.collect::<Vec<&[Uuid]>>();
write_sets.sort();
write_sets.dedup();