about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorIlan Joselevich <personal@ilanjoselevich.com>2024-10-16T12·55+0200
committerclbot <clbot@tvl.fyi>2024-10-16T13·21+0000
commit7e78ebe796c2bb8b5cad09ac8819e091df87e19b (patch)
tree9f086f2f3806035a6349ead46bff8a2c663498d2 /tvix
parentda9a6e5b782b9864b625135ebaaf4a12b9d0018e (diff)
fix(tvix/glue/builtins/import): Drop useless bstring conversion r/8814
In a previous refactoring CL this into_bstring method was accidentally
kept, when we don't need it and can just to_str directly.

Change-Id: Idd531d508b8fd530611b213d0164e7aaf0e87d80
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12631
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
Diffstat (limited to 'tvix')
-rw-r--r--tvix/glue/src/builtins/import.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/tvix/glue/src/builtins/import.rs b/tvix/glue/src/builtins/import.rs
index db60f44de183..d3a93e5204ba 100644
--- a/tvix/glue/src/builtins/import.rs
+++ b/tvix/glue/src/builtins/import.rs
@@ -162,10 +162,7 @@ mod import_builtins {
             .select("sha256")
             .map(|h| {
                 h.to_str().and_then(|expected| {
-                    match nix_compat::nixhash::from_str(
-                        expected.into_bstring().to_str()?,
-                        Some("sha256"),
-                    ) {
+                    match nix_compat::nixhash::from_str(expected.to_str()?, Some("sha256")) {
                         Ok(NixHash::Sha256(digest)) => Ok(digest),
                         Ok(_) => unreachable!(),
                         Err(_e) => {