Allow redundant field names in macros

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2022-12-27 15:55:36 +01:00
parent 691117e1cb
commit 1d86f122d3
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -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,