diff options
author | Alex Auvolat <alex@adnab.me> | 2023-01-26 17:26:32 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-01-26 17:26:32 +0100 |
commit | 8e93d6997415d60ba5c371da8b27065a57254a8c (patch) | |
tree | 8bf3c182ca5d70bd242cc691d2b1fee65c8b6cd3 /src/model/k2v/item_table.rs | |
parent | 3113f6b5f2a688a3f7c4f933774866f48618f7d1 (diff) | |
download | garage-8e93d6997415d60ba5c371da8b27065a57254a8c.tar.gz garage-8e93d6997415d60ba5c371da8b27065a57254a8c.zip |
More clippy fixes
Diffstat (limited to 'src/model/k2v/item_table.rs')
-rw-r--r-- | src/model/k2v/item_table.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/k2v/item_table.rs b/src/model/k2v/item_table.rs index 28646f37..e0fc9b5b 100644 --- a/src/model/k2v/item_table.rs +++ b/src/model/k2v/item_table.rs @@ -269,6 +269,7 @@ impl CountedItem for K2VItem { &self.partition.partition_key } + #[allow(clippy::bool_to_int_with_if)] fn counts(&self) -> Vec<(&'static str, i64)> { let values = self.values(); @@ -313,7 +314,7 @@ mod tests { values: vec![(6, DvvsValue::Value(vec![16])), (7, DvvsValue::Deleted)], }; - let mut e3 = e1.clone(); + let mut e3 = e1; e3.merge(&e2); assert_eq!(e2, e3); } |