mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
test(transformer): prevent lint error when running miri (#7873)
This commit is contained in:
parent
3542b4f55f
commit
f39e65e722
1 changed files with 1 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ fn es_target() {
|
|||
assert_eq!(test(case, &options), Ok(codegen(case, SourceType::mjs())));
|
||||
}
|
||||
|
||||
#[cfg_attr(miri, expect(unused_variables))]
|
||||
let snapshot =
|
||||
cases.into_iter().enumerate().fold(String::new(), |mut w, (i, (target, case))| {
|
||||
let options = TransformOptions::from_target(target).unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue