diff options
Diffstat (limited to 'tvix/cli/src/derivation.rs')
-rw-r--r-- | tvix/cli/src/derivation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/cli/src/derivation.rs b/tvix/cli/src/derivation.rs index 3eafc85591b4..b245d9d5d533 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()); |