From 1a3c6100815dd6ca783666a469959d72245d5da1 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 16 Oct 2023 11:41:50 +0100 Subject: refactor(tvix/nix-compat): clippy Change-Id: I56282d9754b42e0e6cdbb08e9ae71f5700d28dd1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9747 Autosubmit: flokli Reviewed-by: raitobezarius Tested-by: BuildkiteCI --- tvix/nix-compat/src/nixhash/with_mode.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix') 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, )?), }) } -- cgit 1.4.1