diff --git a/crates/blockifier/src/bouncer.rs b/crates/blockifier/src/bouncer.rs index 99c9345184..d28e70184c 100644 --- a/crates/blockifier/src/bouncer.rs +++ b/crates/blockifier/src/bouncer.rs @@ -81,15 +81,7 @@ impl SerializeConfig for BouncerConfig { } #[derive( - Clone, - Copy, - Debug, - derive_more::Add, - derive_more::AddAssign, - derive_more::Sub, - Deserialize, - PartialEq, - Serialize, + Clone, Copy, Debug, derive_more::Add, derive_more::AddAssign, Deserialize, PartialEq, Serialize, )] /// Represents the execution resources counted throughout block creation. pub struct BouncerWeights { diff --git a/crates/starknet_api/src/execution_resources.rs b/crates/starknet_api/src/execution_resources.rs index 63577a1cce..249859f811 100644 --- a/crates/starknet_api/src/execution_resources.rs +++ b/crates/starknet_api/src/execution_resources.rs @@ -9,13 +9,16 @@ use crate::transaction::fields::{Fee, Resource}; #[cfg_attr( any(test, feature = "testing"), - derive(derive_more::Sum, derive_more::Div, derive_more::SubAssign) + derive( + derive_more::Sum, + derive_more::Add, + derive_more::AddAssign, + derive_more::Div, + derive_more::SubAssign + ) )] #[derive( derive_more::Display, - derive_more::Sub, - derive_more::Add, - derive_more::AddAssign, Clone, Copy, Debug,