File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
crates/iota-sdk-types/src Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -127,16 +127,14 @@ impl std::fmt::Display for GasCostSummary {
127
127
}
128
128
}
129
129
130
- #[ cfg( test) ]
130
+ #[ cfg( all ( feature = "serde" , test) ) ]
131
131
mod test {
132
132
#[ cfg( target_arch = "wasm32" ) ]
133
133
use wasm_bindgen_test:: wasm_bindgen_test as test;
134
134
135
- #[ cfg( feature = "serde" ) ]
136
135
use super :: * ;
137
136
138
137
#[ test]
139
- #[ cfg( feature = "serde" ) ]
140
138
fn formats ( ) {
141
139
let actual = GasCostSummary {
142
140
computation_cost : 42 ,
Original file line number Diff line number Diff line change @@ -691,7 +691,7 @@ pub struct ChangeEpochV2 {
691
691
/// write out the modules below. Modules are provided with the version they
692
692
/// will be upgraded to, their modules in serialized form (which include
693
693
/// their package ID), and a list of their transitive dependencies.
694
- #[ cfg_attr( feature = "proptest" , any( proptest:: collection:: size_range( 0 ..=2 ) . lift( ) ) ) ]
694
+ #[ cfg_attr( all ( test , feature = "proptest" ) , any( proptest:: collection:: size_range( 0 ..=2 ) . lift( ) ) ) ]
695
695
pub system_packages : Vec < SystemPackage > ,
696
696
}
697
697
You can’t perform that action at this time.
0 commit comments