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 <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
Florian Klink 2023-07-29 23:08:42 +02:00 committed by clbot
parent 0cae1a6736
commit 92e976b3a9

View file

@ -284,7 +284,7 @@ mod tests {
fn from_str(digest: &[u8], algo: HashAlgo) { fn from_str(digest: &[u8], algo: HashAlgo) {
let expected_hash = NixHash { let expected_hash = NixHash {
digest: digest.to_vec(), digest: digest.to_vec(),
algo: algo.clone(), algo: algo,
}; };
// parse SRI // parse SRI
{ {