diff options
Diffstat (limited to 'tvix/eval/src/builtins/impure.rs')
-rw-r--r-- | tvix/eval/src/builtins/impure.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tvix/eval/src/builtins/impure.rs b/tvix/eval/src/builtins/impure.rs index 26422e263002..3d666528e271 100644 --- a/tvix/eval/src/builtins/impure.rs +++ b/tvix/eval/src/builtins/impure.rs @@ -11,15 +11,15 @@ use std::{ use crate::{ errors::ErrorKind, observer::NoOpObserver, - value::{Builtin, CoercionKind, NixAttrs, NixString, Thunk}, + value::{Builtin, NixAttrs, NixString, Thunk}, vm::VM, SourceCode, Value, }; fn impure_builtins() -> Vec<Builtin> { vec![ - Builtin::new("getEnv", &[true], |args: Vec<Value>, vm: &mut VM| { - Ok(env::var(args[0].coerce_to_string(CoercionKind::Weak, vm)?) + Builtin::new("getEnv", &[true], |args: Vec<Value>, _: &mut VM| { + Ok(env::var(args[0].to_str()?) .unwrap_or_else(|_| "".into()) .into()) }), |