11use crate :: test_utils:: TestRandom ;
22use crate :: * ;
33use beacon_block_body:: KzgCommitments ;
4- use derivative :: Derivative ;
4+ use educe :: Educe ;
55use serde:: de:: { Deserializer , Error as _} ;
66use serde:: { Deserialize , Serialize } ;
77use ssz_derive:: { Decode , Encode } ;
@@ -22,10 +22,10 @@ use tree_hash_derive::TreeHash;
2222 Decode ,
2323 TreeHash ,
2424 TestRandom ,
25- Derivative
25+ Educe
2626 ) ,
2727 cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ,
28- derivative ( PartialEq , Hash ( bound = " E: EthSpec" ) ) ,
28+ educe ( PartialEq , Hash ( bound( E : EthSpec ) ) ) ,
2929 serde( bound = "E: EthSpec" , deny_unknown_fields) ,
3030 cfg_attr( feature = "arbitrary" , arbitrary( bound = "E: EthSpec" ) )
3131 ) ,
@@ -36,8 +36,8 @@ use tree_hash_derive::TreeHash;
3636 cast_error( ty = "Error" , expr = "BeaconStateError::IncorrectStateVariant" ) ,
3737 partial_getter_error( ty = "Error" , expr = "BeaconStateError::IncorrectStateVariant" )
3838) ]
39- #[ derive( Debug , Clone , Serialize , Encode , Deserialize , TreeHash , Derivative ) ]
40- #[ derivative ( PartialEq , Hash ( bound = " E: EthSpec" ) ) ]
39+ #[ derive( Debug , Clone , Serialize , Encode , Deserialize , TreeHash , Educe ) ]
40+ #[ educe ( PartialEq , Hash ( bound( E : EthSpec ) ) ) ]
4141#[ serde( bound = "E: EthSpec" , untagged) ]
4242#[ ssz( enum_behaviour = "transparent" ) ]
4343#[ tree_hash( enum_behaviour = "transparent" ) ]
0 commit comments