Skip to content

Commit

Permalink
Allow clippy::no_effect_underscore_binding
Browse files Browse the repository at this point in the history
  • Loading branch information
SUPERCILEX committed Dec 26, 2023
1 parent 168e076 commit f4add4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions typed-builder-macro/src/struct_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl<'a> StructInfo<'a> {
impl #impl_generics #builder_name <#ty_generics> #where_clause {
#deprecated
#doc
#[allow(clippy::used_underscore_binding)]
#[allow(clippy::used_underscore_binding, clippy::no_effect_underscore_binding)]
pub fn #method_name (self, #param_list) -> #builder_name <#target_generics> {
let #field_name = (#arg_expr,);
let ( #(#descructuring,)* ) = self.fields;
Expand Down Expand Up @@ -462,7 +462,7 @@ impl<'a> StructInfo<'a> {
#[automatically_derived]
impl #impl_generics #builder_name <#ty_generics> #where_clause {
#(#attrs)*
#[allow(clippy::used_underscore_binding)]
#[allow(clippy::used_underscore_binding, clippy::no_effect_underscore_binding)]
#vis #sig {
struct #mutator_struct_name {
#mutator_ty_fields
Expand Down Expand Up @@ -617,7 +617,7 @@ impl<'a> StructInfo<'a> {
#[automatically_derived]
impl #impl_generics #builder_name #modified_ty_generics #where_clause {
#build_method_doc
#[allow(clippy::default_trait_access, clippy::used_underscore_binding)]
#[allow(clippy::default_trait_access, clippy::used_underscore_binding, clippy::no_effect_underscore_binding)]
#build_method_visibility fn #build_method_name #build_method_generic (self) -> #output_type #build_method_where_clause {
let ( #(#descructuring,)* ) = self.fields;
#( #assignments )*
Expand Down

0 comments on commit f4add4a

Please sign in to comment.