about summary refs log tree commit diff
path: root/tvix/cli/src
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-21T17·48+0100
committerflokli <flokli@flokli.de>2023-10-23T14·57+0000
commit2d99bfc7b791ede5e385896a684f6d28e035714c (patch)
treef965fc3c33adccd6ca3e3ad61643d2b35521b57c /tvix/cli/src
parent6800f1cdb9b6fc3f81c40c6d869ba5c2fcfba817 (diff)
refactor(tvix/cli): rename `a` to `algo_str` r/6875
Change-Id: I65d307126647841b50db008c21c155441a6b6cb5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9818
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/cli/src')
-rw-r--r--tvix/cli/src/derivation.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tvix/cli/src/derivation.rs b/tvix/cli/src/derivation.rs
index 2835c3829aef..af787a6f556d 100644
--- a/tvix/cli/src/derivation.rs
+++ b/tvix/cli/src/derivation.rs
@@ -120,13 +120,14 @@ fn populate_output_configuration(
             None => return Err(Error::ConflictingOutputTypes.into()),
             Some(out) => {
                 // treat an empty algo as None
-                let a = if algo.is_empty() {
+                let algo_str = if algo.is_empty() {
                     None
                 } else {
                     Some(algo.as_ref())
                 };
 
-                let hash = nixhash::from_str(&nixhash_str, a).map_err(Error::InvalidOutputHash)?;
+                let hash =
+                    nixhash::from_str(&nixhash_str, algo_str).map_err(Error::InvalidOutputHash)?;
 
                 // construct the NixHashWithMode.
                 out.ca_hash = match hash_mode.as_deref() {