Skip to content
This repository was archived by the owner on Oct 6, 2024. It is now read-only.

Commit bbde4f8

Browse files
committed
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
1 parent 035e433 commit bbde4f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_expr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ fn test_env_to_camel() {
199199
mod test_x86_feature_literal {
200200
// work around https://github.com/rust-lang/rust/issues/72726
201201

202-
use paste::paste;
203-
204202
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
205203
macro_rules! my_is_x86_feature_detected {
206204
($feat:literal) => {
205+
use paste::paste;
206+
207207
paste! {
208208
#[test]
209209
fn test() {

0 commit comments

Comments
 (0)