Skip to content

Commit

Permalink
Ignore dead_code warning in test
Browse files Browse the repository at this point in the history
    warning: method `try_into_tokens` is never used
      --> tests/macros/mod.rs:78:8
       |
    77 | pub trait TryIntoTokens {
       |           ------------- method in this trait
    78 |     fn try_into_tokens(self) -> Result<proc_macro2::TokenStream>;
       |        ^^^^^^^^^^^^^^^
       |
       = note: `#[warn(dead_code)]` on by default
  • Loading branch information
dtolnay committed Feb 8, 2024
1 parent 9831844 commit 7dcfac7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/macros/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ macro_rules! snapshot_impl {
}

pub trait TryIntoTokens {
#[allow(dead_code)]
fn try_into_tokens(self) -> Result<proc_macro2::TokenStream>;
}

Expand Down

0 comments on commit 7dcfac7

Please sign in to comment.