Skip to content

Commit

Permalink
fix: silence clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
amosStarkware committed Jul 30, 2024
1 parent 4c56977 commit 7b4576c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use ethnum::U256;
use strum_macros::{EnumDiscriminants, EnumIter};

use crate::felt::Felt;
use crate::hash::hash_trait::HashOutput;
Expand All @@ -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<L: Leaf> {
Binary(BinaryData),
Expand Down
2 changes: 1 addition & 1 deletion scripts/clippy.sh
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit 7b4576c

Please sign in to comment.