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

Commit

Permalink
Fix unused import warning in test on non-x86
Browse files Browse the repository at this point in the history
    warning: unused import: `paste::paste`
       --> tests/test_expr.rs:202:9
        |
    202 |     use paste::paste;
        |         ^^^^^^^^^^^^
        |
        = note: `#[warn(unused_imports)]` on by default
  • Loading branch information
dtolnay committed Feb 27, 2023
1 parent 035e433 commit bbde4f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit bbde4f8

Please # to comment.