Skip to content

Commit

Permalink
Silence type complexity lint that can occur inside of macro
Browse files Browse the repository at this point in the history
  • Loading branch information
bgw committed Dec 10, 2024
1 parent eac85e7 commit 60e3fcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions turbopack/crates/turbo-tasks-macros/src/assert_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ pub fn assert_fields_impl_trait(
}
});
quote! {
#[allow(non_snake_case)]
#[allow(clippy::type_complexity)]
const _: fn() = || {
// create this struct just to hold onto our generics...
// we reproduce the field types here to ensure any generics get used
struct #assertion_struct_ident #impl_generics (#(#field_types),*) #where_clause;

#[allow(non_snake_case)]
impl #impl_generics #assertion_struct_ident #ty_generics #where_clause {
fn #assertion_fn_ident<
Expected: #trait_path + ?Sized
Expand Down

0 comments on commit 60e3fcd

Please sign in to comment.