From 995eb95000f5c7010727f895d41f6d53fa6f242c Mon Sep 17 00:00:00 2001 From: GnomedDev Date: Tue, 1 Oct 2024 19:14:03 +0100 Subject: [PATCH] Fix TRAIT_METHODS being large const array --- clippy_lints/src/methods/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 7696dd16b..90f7128d0 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),