diff options
author | Florian Klink <flokli@flokli.de> | 2023-03-16T23·20+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-03-17T07·49+0000 |
commit | 23ddf49229f507b1a06cfa13d1c0d828b63ce919 (patch) | |
tree | 01d8926f6b7c9413aaa4be5ba93bb902d5a29a6d /tvix/store/src/chunkservice/memory.rs | |
parent | 7a966b25407810d22bf8ebc28a46ce012d2cfab9 (diff) |
chore(tvix/store/chunkservice): clippy lint r/6017
Change-Id: I2073408fe6e87ffadbeb35ef2f9aaa0316c54966 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8319 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/store/src/chunkservice/memory.rs')
-rw-r--r-- | tvix/store/src/chunkservice/memory.rs | 4 |
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()) } } |