From 92e976b3a94f3d030d0eb13f3899d8147dc99059 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 29 Jul 2023 23:08:42 +0200 Subject: chore(tvix/nix-compat): drop useless clone HashAlgo implements Copy, no need to clone here. Change-Id: Ief11d2cfbd4fd0cd44224c7ddd575f518edbbd55 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8989 Tested-by: BuildkiteCI Reviewed-by: tazjin Autosubmit: flokli --- tvix/nix-compat/src/nixhash/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/nix-compat/src') diff --git a/tvix/nix-compat/src/nixhash/mod.rs b/tvix/nix-compat/src/nixhash/mod.rs index dccba7a5ba27..815c0e621fb9 100644 --- a/tvix/nix-compat/src/nixhash/mod.rs +++ b/tvix/nix-compat/src/nixhash/mod.rs @@ -284,7 +284,7 @@ mod tests { fn from_str(digest: &[u8], algo: HashAlgo) { let expected_hash = NixHash { digest: digest.to_vec(), - algo: algo.clone(), + algo: algo, }; // parse SRI { -- cgit 1.4.1