Skip to content

Commit f5aec4a

Browse files
authored
Merge pull request #486 from nikomatsakis/clippy-lints
allow various clippy lint groups
2 parents 3257fa9 + 82b672d commit f5aec4a

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

components/salsa-2022-macros/src/accumulator.rs

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ fn struct_item_out(
9595
fn inherent_impl(args: &Args, struct_ty: &syn::Type, data_ty: &syn::Type) -> syn::ItemImpl {
9696
let jar_ty = args.jar_ty();
9797
parse_quote_spanned! { struct_ty.span() =>
98+
#[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)]
9899
impl #struct_ty {
99100
pub fn push<DB: ?Sized>(db: &DB, data: #data_ty)
100101
where
@@ -116,6 +117,7 @@ fn ingredients_for_impl(
116117
let jar_ty = args.jar_ty();
117118
let debug_name = crate::literal(struct_name);
118119
parse_quote_spanned! { struct_name.span() =>
120+
#[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)]
119121
impl salsa::storage::IngredientsFor for #struct_name {
120122
type Ingredients = salsa::accumulator::AccumulatorIngredient<#data_ty>;
121123
type Jar = #jar_ty;
@@ -143,6 +145,7 @@ fn ingredients_for_impl(
143145
fn accumulator_impl(args: &Args, struct_ty: &syn::Type, data_ty: &syn::Type) -> syn::ItemImpl {
144146
let jar_ty = args.jar_ty();
145147
parse_quote_spanned! { struct_ty.span() =>
148+
#[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)]
146149
impl salsa::accumulator::Accumulator for #struct_ty {
147150
type Data = #data_ty;
148151
type Jar = #jar_ty;

components/salsa-2022-macros/src/input.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl InputStruct {
192192
}
193193
} else {
194194
parse_quote! {
195-
#[allow(dead_code)]
195+
#[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)]
196196
impl #ident {
197197
#constructor
198198

components/salsa-2022-macros/src/interned.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl InternedStruct {
131131
};
132132

133133
parse_quote! {
134-
#[allow(dead_code)]
134+
#[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)]
135135
impl #id_ident {
136136
#(#field_getters)*
137137

components/salsa-2022-macros/src/tracked_struct.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ impl TrackedStruct {
194194
let constructor_name = self.constructor_name();
195195

196196
parse_quote! {
197-
#[allow(clippy::too_many_arguments)]
197+
#[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)]
198198
impl #ident {
199199
pub fn #constructor_name(__db: &#db_dyn_ty, #(#field_names: #field_tys,)*) -> Self
200200
{

0 commit comments

Comments
 (0)