Skip to content

Commit

Permalink
Merge pull request #8 from jucr-io/new-too-many-args
Browse files Browse the repository at this point in the history
Tell clippy to shutup about too many args to new()
  • Loading branch information
zeenix authored Jul 29, 2024
2 parents b4e0d76 + 7e44960 commit 16536e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/item_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ pub(crate) fn expand(mut input: ItemStruct) -> Result<TokenStream> {
}

impl #struct_name {
#[allow(clippy::too_many_arguments)]
pub fn new(#(#fields),*) -> Self {
Self {
#(#field_names),*,
Expand Down

0 comments on commit 16536e6

Please sign in to comment.