about summary refs log tree commit diff
path: root/tvix/store/src/chunkservice/sled.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/store/src/chunkservice/sled.rs')
-rw-r--r--tvix/store/src/chunkservice/sled.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/store/src/chunkservice/sled.rs b/tvix/store/src/chunkservice/sled.rs
index 43c98813a240..8e86e1825b28 100644
--- a/tvix/store/src/chunkservice/sled.rs
+++ b/tvix/store/src/chunkservice/sled.rs
@@ -61,10 +61,10 @@ impl ChunkService for SledChunkService {
     #[instrument(name = "SledChunkService::put", skip(self, data))]
     fn put(&self, data: Vec<u8>) -> Result<[u8; 32], Error> {
         let digest = blake3::hash(&data);
-        let result = self.db.insert(&digest.as_bytes(), data);
+        let result = self.db.insert(digest.as_bytes(), data);
         if let Err(e) = result {
             return Err(Error::StorageError(e.to_string()));
         }
-        Ok(digest.as_bytes().clone())
+        Ok(*digest.as_bytes())
     }
 }