Fix TRAIT_METHODS being large const array

This commit is contained in:
GnomedDev 2024-10-01 19:14:03 +01:00
parent 26994e2519
commit 995eb95000
No known key found for this signature in database

View file

@ -5182,7 +5182,7 @@ impl ShouldImplTraitCase {
} }
#[rustfmt::skip] #[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::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::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), ShouldImplTraitCase::new("std::convert::AsRef", "as_ref", 1, FN_HEADER, SelfKind::Ref, OutType::Ref, true),