aboutsummaryrefslogtreecommitdiff
path: root/src/table/data.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-03 11:14:24 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-03 11:14:24 +0200
commitcc0d984118e345c72341ff12d74b1c35deb20ae8 (patch)
tree04a3b045302987f673fd31e7c21b110ea824f93f /src/table/data.rs
parentf25309e58f839d1fad6b094cd33d7f36b5c3e2e0 (diff)
downloadgarage-cc0d984118e345c72341ff12d74b1c35deb20ae8.tar.gz
garage-cc0d984118e345c72341ff12d74b1c35deb20ae8.zip
Fix most clippy lints
Diffstat (limited to 'src/table/data.rs')
-rw-r--r--src/table/data.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/table/data.rs b/src/table/data.rs
index dc1fd445..427ce763 100644
--- a/src/table/data.rs
+++ b/src/table/data.rs
@@ -206,12 +206,8 @@ where
if value_changed || encoding_changed {
let new_bytes_hash = blake2sum(&new_bytes[..]);
- tx.insert(
- &self.merkle_todo,
- tree_key.to_vec(),
- new_bytes_hash.as_slice(),
- )?;
- tx.insert(&self.store, tree_key.to_vec(), new_bytes)?;
+ tx.insert(&self.merkle_todo, tree_key, new_bytes_hash.as_slice())?;
+ tx.insert(&self.store, tree_key, new_bytes)?;
Ok(Some((old_entry, new_entry, new_bytes_hash)))
} else {
Ok(None)