nushell/crates/nu-engine/src
Ian Manske 157494e803
Make get_env_var return a reference to a Value (#13987)
# Description
Title says it all, changes `EngineState::get_env_var` to return a
`Option<&'a Value>` instead of an owned `Option<Value>`. This avoids
some unnecessary clones.

I also made a similar change to the `PluginExecutionContext` trait.
2024-10-02 13:05:48 +02:00
..
compile Make SpanId and RegId also use new ID struct (#13963) 2024-10-01 13:23:27 +02:00
call_ext.rs Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
closure_eval.rs Use Arc for environment variables on the stack (#13333) 2024-07-10 17:34:50 -07:00
column.rs Use Record's public API in a bunch of places (#10927) 2023-11-08 14:24:00 +01:00
command_prelude.rs Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
documentation.rs Fix try not working with let, etc. (#13885) 2024-09-23 06:44:25 -05:00
env.rs Make get_env_var return a reference to a Value (#13987) 2024-10-02 13:05:48 +02:00
eval_helpers.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
eval_ir.rs Make SpanId and RegId also use new ID struct (#13963) 2024-10-01 13:23:27 +02:00
eval.rs Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00
glob_from.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
lib.rs Add top-level crate documentation/READMEs (#12907) 2024-07-14 10:10:41 +02:00
scope.rs Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00