diff --git a/tvix/cli/src/derivation.rs b/tvix/cli/src/derivation.rs index 3eafc8559..b245d9d5d 100644 --- a/tvix/cli/src/derivation.rs +++ b/tvix/cli/src/derivation.rs @@ -124,7 +124,7 @@ fn populate_output_configuration( // algo is set. Assume the digest is set to some nixbase32. // TODO: more validation here - (digest.to_string(), algo.to_string()) + (digest, algo) } Ok(sri_parsed) => { // We don't support more than one SRI hash @@ -148,7 +148,7 @@ fn populate_output_configuration( // if algo is set, it needs to match what the SRI says if !algo.is_empty() && algo != sri_parsed_hash.algorithm.to_string() { return Err(Error::ConflictingSRIHashAlgo( - algo.to_string(), + algo, sri_parsed_hash.algorithm.to_string(), ) .into());