about summary refs log tree commit diff
path: root/tvix/nix-compat
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-07-29T21·08+0200
committerclbot <clbot@tvl.fyi>2023-07-31T09·01+0000
commit92e976b3a94f3d030d0eb13f3899d8147dc99059 (patch)
tree00bd2ab6b84a523a398e30e99386a378ee21a25d /tvix/nix-compat
parent0cae1a6736ebbb801e155e98d6b6acf7e6310ca6 (diff)
chore(tvix/nix-compat): drop useless clone r/6446
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 <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/nix-compat')
-rw-r--r--tvix/nix-compat/src/nixhash/mod.rs2
1 files changed, 1 insertions, 1 deletions
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
         {