From 4a9e50944702ebed0fdfe2ac5aad0a99787d0506 Mon Sep 17 00:00:00 2001 From: Jort Date: Wed, 8 Jan 2025 10:43:18 -0800 Subject: [PATCH] [move] mute clippy for type complexity, default warning, uppercase (#20814) ## Description Describe the changes or additions included in this PR. ## Test plan How did you test the new or updated feature? --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] gRPC: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: --- .../move/crates/move-binary-format/src/deserializer.rs | 1 + external-crates/move/crates/move-binary-format/src/errors.rs | 2 ++ .../crates/move-binary-format/src/proptest_types/functions.rs | 1 + external-crates/move/crates/move-core-types/src/effects.rs | 1 + 4 files changed, 5 insertions(+) diff --git a/external-crates/move/crates/move-binary-format/src/deserializer.rs b/external-crates/move/crates/move-binary-format/src/deserializer.rs index ab3c8db8b2122..45f78a1430835 100644 --- a/external-crates/move/crates/move-binary-format/src/deserializer.rs +++ b/external-crates/move/crates/move-binary-format/src/deserializer.rs @@ -1937,6 +1937,7 @@ impl DeprecatedNominalResourceFlag { } #[rustfmt::skip] #[allow(non_camel_case_types)] +#[allow(clippy::upper_case_acronyms)] #[repr(u8)] enum DeprecatedKind { ALL = 0x1, diff --git a/external-crates/move/crates/move-binary-format/src/errors.rs b/external-crates/move/crates/move-binary-format/src/errors.rs index c67943312ea36..70a63a22fd477 100644 --- a/external-crates/move/crates/move-binary-format/src/errors.rs +++ b/external-crates/move/crates/move-binary-format/src/errors.rs @@ -91,6 +91,7 @@ impl VMError { self.0.major_status.status_type() } + #[allow(clippy::type_complexity)] pub fn all_data( self, ) -> ( @@ -188,6 +189,7 @@ struct PartialVMError_ { } impl PartialVMError { + #[allow(clippy::type_complexity)] pub fn all_data( self, ) -> ( diff --git a/external-crates/move/crates/move-binary-format/src/proptest_types/functions.rs b/external-crates/move/crates/move-binary-format/src/proptest_types/functions.rs index 42bbfacfc1b75..11bbe5586477f 100644 --- a/external-crates/move/crates/move-binary-format/src/proptest_types/functions.rs +++ b/external-crates/move/crates/move-binary-format/src/proptest_types/functions.rs @@ -349,6 +349,7 @@ impl<'a> FnDefnMaterializeState<'a> { } } + #[allow(clippy::type_complexity)] pub fn return_tables( self, ) -> ( diff --git a/external-crates/move/crates/move-core-types/src/effects.rs b/external-crates/move/crates/move-core-types/src/effects.rs index 79b9e0970ae97..9c44ec007e290 100644 --- a/external-crates/move/crates/move-core-types/src/effects.rs +++ b/external-crates/move/crates/move-core-types/src/effects.rs @@ -111,6 +111,7 @@ impl AccountChangeSet { Self { modules } } + #[allow(clippy::new_without_default)] pub fn new() -> Self { Self { modules: BTreeMap::new(),