mirror of
https://github.com/nushell/nushell.git
synced 2024-11-24 17:34:00 +01:00
quick fix up for ir pr as_refs (#13340)
# Description Was having an issue compiling main after the IR pr. Talked to devyn and he led me to change a couple things real quick and we're compiling once again.
This commit is contained in:
parent
1a5bf2447a
commit
ac561b1b0e
@ -1275,7 +1275,7 @@ fn get_env_var_case_insensitive<'a>(ctx: &'a mut EvalContext<'_>, key: &str) ->
|
||||
.env_vars
|
||||
.iter()
|
||||
.rev()
|
||||
.chain(std::iter::once(ctx.engine_state.env_vars.as_ref()))
|
||||
.chain(std::iter::once(&ctx.engine_state.env_vars))
|
||||
.flat_map(|overlays| {
|
||||
// Read overlays in order
|
||||
ctx.stack
|
||||
@ -1303,7 +1303,7 @@ fn get_env_var_name_case_insensitive<'a>(ctx: &mut EvalContext<'_>, key: &'a str
|
||||
.env_vars
|
||||
.iter()
|
||||
.rev()
|
||||
.chain(std::iter::once(ctx.engine_state.env_vars.as_ref()))
|
||||
.chain(std::iter::once(&ctx.engine_state.env_vars))
|
||||
.flat_map(|overlays| {
|
||||
// Read overlays in order
|
||||
ctx.stack
|
||||
|
Loading…
Reference in New Issue
Block a user