From 2eca6efb508f7603b8408534471248f956de5f7d Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 20 Nov 2021 08:00:12 +0100 Subject: ignore rustc warning about unused trait parameters See https://github.com/rust-lang/rust/issues/91074. --- src/syn_utils.rs | 1 + 1 file changed, 1 insertion(+) 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 { fn match_type<'a>(&self, t: &'a Type) -> Option<&'a T> { None -- cgit v1.2.3