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:
Darren Schroeder 2024-07-10 20:19:06 -05:00 committed by GitHub
parent 1a5bf2447a
commit ac561b1b0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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