From 648567dcacb83f779adc6b56f35a15022ab3e9f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Sun, 26 Jan 2025 21:49:44 +0900 Subject: [PATCH] #![cfg_attr(not(test), allow(unused))] --- crates/swc_common/src/lib.rs | 1 + crates/swc_ecma_transforms_base/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/crates/swc_common/src/lib.rs b/crates/swc_common/src/lib.rs index 7f8e8e07fa92..3d9d59b1fca3 100644 --- a/crates/swc_common/src/lib.rs +++ b/crates/swc_common/src/lib.rs @@ -33,6 +33,7 @@ //! Use `ahash` instead of `rustc_hash` for `AHashMap` and `AHashSet`. #![deny(clippy::all)] #![cfg_attr(docsrs, feature(doc_cfg))] +#![cfg_attr(not(test), allow(unused))] use std::fmt::Debug; diff --git a/crates/swc_ecma_transforms_base/src/lib.rs b/crates/swc_ecma_transforms_base/src/lib.rs index 67048e5baca1..288bc80c3b02 100644 --- a/crates/swc_ecma_transforms_base/src/lib.rs +++ b/crates/swc_ecma_transforms_base/src/lib.rs @@ -1,5 +1,6 @@ // #![cfg_attr(test, deny(warnings))] #![allow(clippy::mutable_key_type)] +#![cfg_attr(not(test), allow(unused))] pub use self::resolver::resolver;