Skip to content

Commit

Permalink
Fix TRAIT_METHODS being large const array
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Oct 4, 2024
1 parent 26994e2 commit 995eb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5182,7 +5182,7 @@ impl ShouldImplTraitCase {
}

#[rustfmt::skip]
const TRAIT_METHODS: [ShouldImplTraitCase; 30] = [
static TRAIT_METHODS: [ShouldImplTraitCase; 30] = [
ShouldImplTraitCase::new("std::ops::Add", "add", 2, FN_HEADER, SelfKind::Value, OutType::Any, true),
ShouldImplTraitCase::new("std::convert::AsMut", "as_mut", 1, FN_HEADER, SelfKind::RefMut, OutType::Ref, true),
ShouldImplTraitCase::new("std::convert::AsRef", "as_ref", 1, FN_HEADER, SelfKind::Ref, OutType::Ref, true),
Expand Down

0 comments on commit 995eb95

Please sign in to comment.