diff options
Diffstat (limited to 'runtime/ops/os/mod.rs')
-rw-r--r-- | runtime/ops/os/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/ops/os/mod.rs b/runtime/ops/os/mod.rs index b93935955..844fbaecc 100644 --- a/runtime/ops/os/mod.rs +++ b/runtime/ops/os/mod.rs @@ -78,10 +78,10 @@ fn op_exec_path(state: &mut OpState) -> Result<String, AnyError> { #[op] fn op_set_env( state: &mut OpState, - key: String, - value: String, + key: &str, + value: &str, ) -> Result<(), AnyError> { - state.borrow_mut::<Permissions>().env.check(&key)?; + state.borrow_mut::<Permissions>().env.check(key)?; if key.is_empty() { return Err(type_error("Key is an empty string.")); } |