diff options
| author | Philipp Krones <hello@philkrones.com> | 2024-10-18 14:54:06 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2024-10-18 14:54:06 +0200 |
| commit | 91a458f45106082f31dea172156b9ad6400a9955 (patch) | |
| tree | a845c2a9297c52a1cbf2e5de04a1910e0be335d6 | |
| parent | fea5e77da1dedea3a64711cb1b75c141e72ba248 (diff) | |
| download | rust-91a458f45106082f31dea172156b9ad6400a9955.tar.gz rust-91a458f45106082f31dea172156b9ad6400a9955.zip | |
Hotfix TRAIT_METHODS static->const
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 722290fb68e..2a391870d70 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -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), |
