Skip to content

Commit 91a458f

Browse files
committed
Hotfix TRAIT_METHODS static->const
1 parent fea5e77 commit 91a458f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • clippy_lints/src/methods

‎clippy_lints/src/methods/mod.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5182,7 +5182,8 @@ impl ShouldImplTraitCase {
51825182
}
51835183

51845184
#[rustfmt::skip]
5185-
staticTRAIT_METHODS:[ShouldImplTraitCase;30] = [
5185+
#[expect(clippy::large_const_arrays, reason = "`Span` is not sync, so this can't be static")]
5186+
constTRAIT_METHODS:[ShouldImplTraitCase;30] = [
51865187
ShouldImplTraitCase::new("std::ops::Add","add",2,FN_HEADER,SelfKind::Value,OutType::Any,true),
51875188
ShouldImplTraitCase::new("std::convert::AsMut","as_mut",1,FN_HEADER,SelfKind::RefMut,OutType::Ref,true),
51885189
ShouldImplTraitCase::new("std::convert::AsRef","as_ref",1,FN_HEADER,SelfKind::Ref,OutType::Ref,true),

0 commit comments

Comments
 (0)