From 7b4576c223f1516c6ee9e957e0fcbe069492d17e Mon Sep 17 00:00:00 2001 From: amos rothberg Date: Tue, 30 Jul 2024 18:53:42 +0300 Subject: [PATCH] fix: silence clippy --- .../src/patricia_merkle_tree/node_data/inner_node.rs | 5 ++--- scripts/clippy.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/committer/src/patricia_merkle_tree/node_data/inner_node.rs b/crates/committer/src/patricia_merkle_tree/node_data/inner_node.rs index 4250b0f05e..4f2950a4f4 100644 --- a/crates/committer/src/patricia_merkle_tree/node_data/inner_node.rs +++ b/crates/committer/src/patricia_merkle_tree/node_data/inner_node.rs @@ -1,5 +1,4 @@ use ethnum::U256; -use strum_macros::{EnumDiscriminants, EnumIter}; use crate::felt::Felt; use crate::hash::hash_trait::HashOutput; @@ -12,8 +11,8 @@ use crate::patricia_merkle_tree::types::{NodeIndex, SubTreeHeight}; pub mod inner_node_test; #[derive(Clone, Debug, PartialEq, Eq)] -#[cfg_attr(any(test, feature = "testing"), derive(EnumDiscriminants))] -#[cfg_attr(any(test, feature = "testing"), strum_discriminants(derive(EnumIter)))] +#[cfg_attr(any(test, feature = "testing"), derive(strum_macros::EnumDiscriminants))] +#[cfg_attr(any(test, feature = "testing"), strum_discriminants(derive(strum_macros::EnumIter)))] // A Patricia-Merkle tree node's data, i.e., the pre-image of its hash. pub enum NodeData { Binary(BinaryData), diff --git a/scripts/clippy.sh b/scripts/clippy.sh index 7ca2f22768..f93787be7e 100755 --- a/scripts/clippy.sh +++ b/scripts/clippy.sh @@ -1,7 +1,7 @@ #!/bin/bash # TODO: Revert clippy::unwrap_used to -D after fixing all the unwraps. -cargo clippy --workspace --all-targets --all-features -- \ +cargo clippy -p committer -- \ -D future-incompatible \ -D nonstandard-style \ -D rust-2018-idioms \