about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-16T10·41+0100
committerflokli <flokli@flokli.de>2023-10-16T11·13+0000
commit1a3c6100815dd6ca783666a469959d72245d5da1 (patch)
tree64374c46c727cd07835bf108aee22c5ddd1c5551 /tvix
parent1d97b4230fdc74039bddc8b8b4e159c6ebc1dfbd (diff)
refactor(tvix/nix-compat): clippy r/6825
Change-Id: I56282d9754b42e0e6cdbb08e9ae71f5700d28dd1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9747
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix')
-rw-r--r--tvix/nix-compat/src/nixhash/with_mode.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/nix-compat/src/nixhash/with_mode.rs b/tvix/nix-compat/src/nixhash/with_mode.rs
index efea3d0e6231..6e6d2e76b4a4 100644
--- a/tvix/nix-compat/src/nixhash/with_mode.rs
+++ b/tvix/nix-compat/src/nixhash/with_mode.rs
@@ -36,11 +36,11 @@ impl NixHashWithMode {
         Ok(match algo_and_mode.strip_prefix("r:") {
             Some(algo) => nixhash::NixHashWithMode::Recursive(nixhash::from_algo_and_digest(
                 algo.try_into()?,
-                &digest,
+                digest,
             )?),
             None => nixhash::NixHashWithMode::Flat(nixhash::from_algo_and_digest(
                 algo_and_mode.try_into()?,
-                &digest,
+                digest,
             )?),
         })
     }