Skip to content

Commit

Permalink
Hotfix TRAIT_METHODS static->const
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Oct 18, 2024
1 parent 375ca8d commit cf918d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/clippy/clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5182,7 +5182,8 @@ impl ShouldImplTraitCase {
}

#[rustfmt::skip]
static TRAIT_METHODS: [ShouldImplTraitCase; 30] = [
#[expect(clippy::large_const_arrays, reason = "`Span` is not sync, so this can't be static")]
const 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 cf918d5

Please sign in to comment.