diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-20 08:00:12 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-20 08:00:44 +0100 |
commit | 2eca6efb508f7603b8408534471248f956de5f7d (patch) | |
tree | a7b28daf32cb9e5c22a3571ccd6d60fd04c184ef /src | |
parent | 8d4c194edf32a0b94bf4eaaa562806e86cfc0d74 (diff) |
ignore rustc warning about unused trait parameters
See https://github.com/rust-lang/rust/issues/91074.
Diffstat (limited to 'src')
-rw-r--r-- | src/syn_utils.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syn_utils.rs b/src/syn_utils.rs index 61ae27f..a778793 100644 --- a/src/syn_utils.rs +++ b/src/syn_utils.rs @@ -3,6 +3,7 @@ use syn::{ Type, TypeParamBound, }; +#[allow(unused_variables)] pub trait TypeMatcher<T> { fn match_type<'a>(&self, t: &'a Type) -> Option<&'a T> { None |