From bbde4f8d6abe98ae8718c6436fd201eac2f8fb31 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 26 Feb 2023 22:53:57 -0700 Subject: [PATCH] Fix unused import warning in test on non-x86 warning: unused import: `paste::paste` --> tests/test_expr.rs:202:9 | 202 | use paste::paste; | ^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default --- tests/test_expr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_expr.rs b/tests/test_expr.rs index c49ee83..a8e6bd8 100644 --- a/tests/test_expr.rs +++ b/tests/test_expr.rs @@ -199,11 +199,11 @@ fn test_env_to_camel() { mod test_x86_feature_literal { // work around https://github.com/rust-lang/rust/issues/72726 - use paste::paste; - #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] macro_rules! my_is_x86_feature_detected { ($feat:literal) => { + use paste::paste; + paste! { #[test] fn test() {