about summary refs log tree commit diff
path: root/tvix/cli/src
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-01-31T11·27+0100
committerflokli <flokli@flokli.de>2023-01-31T13·26+0000
commit6fa91349a9b97e74cf3dd9833da19b3450045e20 (patch)
tree27774973c4d5d6692024dc50207a5a7d5ddfeeb8 /tvix/cli/src
parent4da1e64c030fc9b1bb23f1ef90546a531b5f760e (diff)
refactor(tvix/cli): remove unneeded clone r/5786
Change-Id: I6f4cb24bdd636af8918a2ade44075af92161c97d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7965
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/cli/src')
-rw-r--r--tvix/cli/src/derivation.rs4
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());