From 1d86f122d3d151fef0160d8ddca8cfb356d11445 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 27 Dec 2022 15:55:36 +0100 Subject: [PATCH] Allow redundant field names in macros Signed-off-by: Matthias Beyer --- src/macros.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/macros.rs b/src/macros.rs index 4b8eee3..2c7dad4 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -86,6 +86,7 @@ macro_rules! paged_routes { _marker: ::std::marker::PhantomData<&'a ()>, } + #[allow(clippy::redundant_field_names)] let qs_data = Data { $( $param: $param, @@ -135,6 +136,7 @@ macro_rules! route_v2 { _marker: ::std::marker::PhantomData<&'a ()>, } + #[allow(clippy::redundant_field_names)] let qs_data = Data { $( $param: $param, @@ -349,6 +351,7 @@ macro_rules! route { _marker: ::std::marker::PhantomData<&'a ()>, } + #[allow(clippy::redundant_field_names)] let qs_data = Data { $( $param: $param,