about summary refs log tree commit diff
path: root/tvix/store/src/chunkservice/memory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/store/src/chunkservice/memory.rs')
-rw-r--r--tvix/store/src/chunkservice/memory.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/store/src/chunkservice/memory.rs b/tvix/store/src/chunkservice/memory.rs
index 55e646ea7714..9fe4dc17d5ec 100644
--- a/tvix/store/src/chunkservice/memory.rs
+++ b/tvix/store/src/chunkservice/memory.rs
@@ -46,8 +46,8 @@ impl ChunkService for MemoryChunkService {
         let digest = blake3::hash(&data);
 
         let mut db = self.db.write().unwrap();
-        db.insert(digest.as_bytes().clone(), data);
+        db.insert(*digest.as_bytes(), data);
 
-        Ok(digest.as_bytes().clone())
+        Ok(*digest.as_bytes())
     }
 }