diff options
Diffstat (limited to 'tvix/glue/src')
-rw-r--r-- | tvix/glue/src/builtins/import.rs | 5 |
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) => { |