From f39e65e722b335c1a1b56b9694619c1bfa49fd2f Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Sat, 14 Dec 2024 03:10:07 +0000 Subject: [PATCH] test(transformer): prevent lint error when running miri (#7873) --- crates/oxc_transformer/tests/integrations/es_target.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/oxc_transformer/tests/integrations/es_target.rs b/crates/oxc_transformer/tests/integrations/es_target.rs index e49498088cae3..7300070ba47e6 100644 --- a/crates/oxc_transformer/tests/integrations/es_target.rs +++ b/crates/oxc_transformer/tests/integrations/es_target.rs @@ -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();