From 482d5377201b1a179c8be9d0661254a2b8e90d83 Mon Sep 17 00:00:00 2001 From: Ariel Ben-Yehuda Date: Wed, 30 Apr 2025 07:12:40 +0000 Subject: [PATCH] fix: address Clippy lints --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9eaf4e3..a1f1c2d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -325,10 +325,10 @@ where /// `quote!` macro. It expands to a reference to the matched field. #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub struct BindingInfo<'a> { - /// The name which this BindingInfo will bind to. + /// The name which this `BindingInfo` will bind to. pub binding: Ident, - /// The type of binding which this BindingInfo will create. + /// The type of binding which this `BindingInfo` will create. pub style: BindStyle, field: &'a Field, @@ -341,7 +341,7 @@ pub struct BindingInfo<'a> { index: usize, } -impl<'a> ToTokens for BindingInfo<'a> { +impl ToTokens for BindingInfo<'_> { fn to_tokens(&self, tokens: &mut TokenStream) { self.binding.to_tokens(tokens); }