Skip to content

Commit 7dcfac7

Browse files
committed
Ignore dead_code warning in test
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
1 parent 9831844 commit 7dcfac7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/macros/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ macro_rules! snapshot_impl {
7575
}
7676

7777
pub trait TryIntoTokens {
78+
#[allow(dead_code)]
7879
fn try_into_tokens(self) -> Result<proc_macro2::TokenStream>;
7980
}
8081

0 commit comments

Comments
 (0)