diff options
Diffstat (limited to 'tvix/serde/src/de_tests.rs')
-rw-r--r-- | tvix/serde/src/de_tests.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tvix/serde/src/de_tests.rs b/tvix/serde/src/de_tests.rs index 807d953c77fa..54c2fdf8f7fe 100644 --- a/tvix/serde/src/de_tests.rs +++ b/tvix/serde/src/de_tests.rs @@ -213,6 +213,7 @@ fn deserialize_with_config() { #[builtins] mod test_builtins { + use bstr::ByteSlice; use tvix_eval::generators::{Gen, GenCo}; use tvix_eval::{ErrorKind, NixString, Value}; @@ -220,7 +221,7 @@ mod test_builtins { pub async fn builtin_prepend_hello(co: GenCo, x: Value) -> Result<Value, ErrorKind> { match x { Value::String(s) => { - let new_string = NixString::from(format!("hello {}", s.as_str())); + let new_string = NixString::from(format!("hello {}", s.to_str().unwrap())); Ok(Value::String(new_string)) } _ => Err(ErrorKind::TypeError { |