about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGnomedDev <david2005thomas@gmail.com>2024-10-01 19:14:03 +0100
committerGnomedDev <david2005thomas@gmail.com>2024-10-04 19:07:40 +0100
commit995eb95000f5c7010727f895d41f6d53fa6f242c (patch)
treee853e067c3cdc0308f7c9f6e1aaf1b526026af23
parent26994e2519c5913b85d2beebaf139ee335275d00 (diff)
downloadrust-995eb95000f5c7010727f895d41f6d53fa6f242c.tar.gz
rust-995eb95000f5c7010727f895d41f6d53fa6f242c.zip
Fix TRAIT_METHODS being large const array
-rw-r--r--clippy_lints/src/methods/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs
index 7696dd16b25..90f7128d0e8 100644
--- a/clippy_lints/src/methods/mod.rs
+++ b/clippy_lints/src/methods/mod.rs
@@ -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),