Fix code in benchmarks (#7949)

# Description

Broken after #7415

We currently don't try to build the benchmarks in the CI thus this
slipped through the cracks.


# User-Facing Changes

None

# Tests + Formatting

Compile check is currently missing, but working towards that
This commit is contained in:
Stefan Holderbach 2023-02-02 23:07:35 +01:00 committed by GitHub
parent f189ee67a1
commit 215ed141e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,7 @@ fn parser_benchmarks(c: &mut Criterion) {
get_default_env().as_bytes(),
"default_env.nu",
PipelineData::empty(),
false,
)
})
});
@ -65,6 +66,7 @@ fn parser_benchmarks(c: &mut Criterion) {
get_default_config().as_bytes(),
"default_config.nu",
PipelineData::empty(),
false,
)
})
});
@ -81,6 +83,7 @@ fn eval_benchmarks(c: &mut Criterion) {
get_default_env().as_bytes(),
"default_env.nu",
PipelineData::empty(),
false,
)
})
});
@ -100,6 +103,7 @@ fn eval_benchmarks(c: &mut Criterion) {
get_default_config().as_bytes(),
"default_config.nu",
PipelineData::empty(),
false,
)
})
});