about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-05-23T11·10+0300
committerflokli <flokli@flokli.de>2023-05-23T12·28+0000
commit4dd954f8f5c025aaebf0b1dede1e7b99f47550f5 (patch)
treed42f9fe77604795bb25c419d6e3a794ac32502be
parente51d85e078bd0bb2397d72c38384a2bb180fa7ee (diff)
refactor(tvix/store/directorysvc): clippy r/6180
Change-Id: I30f7e98fe79ba22d218b4aabaef88c84b6085d82
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8617
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
-rw-r--r--tvix/store/src/directoryservice/memory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/store/src/directoryservice/memory.rs b/tvix/store/src/directoryservice/memory.rs
index 524c7664c651..1fd619f7c8cb 100644
--- a/tvix/store/src/directoryservice/memory.rs
+++ b/tvix/store/src/directoryservice/memory.rs
@@ -18,7 +18,7 @@ impl DirectoryService for MemoryDirectoryService {
     fn get(&self, digest: &B3Digest) -> Result<Option<proto::Directory>, Error> {
         let db = self.db.read()?;
 
-        match db.get(&digest) {
+        match db.get(digest) {
             // The directory was not found, return
             None => Ok(None),