@@ -2130,9 +2130,8 @@ mod tests {
21302130 assert_eq ! ( count. no, 5 ) ;
21312131 assert_eq ! ( count. abstain, 1 ) ;
21322132
2133- let counts: VoteResult < VoteCount > = VoteResult :: from_str (
2134- "cy0/n5/a1:dy0/n1/a2:sy123/n456/a0788890"
2135- ) ?;
2133+ let counts: VoteResult < VoteCount > =
2134+ VoteResult :: from_str ( "cy0/n5/a1:dy0/n1/a2:sy123/n456/a0788890" ) ?;
21362135 assert_eq ! ( counts. committee, count) ;
21372136 assert_eq ! ( counts. drep. yes, 0 ) ;
21382137 assert_eq ! ( counts. drep. no, 1 ) ;
@@ -2154,14 +2153,13 @@ mod tests {
21542153
21552154 let addr = serde_json:: from_str :: < StakeAddress > ( serialized) ?;
21562155 assert_eq ! ( addr. network, NetworkId :: Mainnet ) ;
2157- assert_eq ! ( addr. credential, StakeCredential :: AddrKeyHash ( KeyHash :: from(
2158- [
2159- 0x45 , 0xde , 0xe6 , 0xee , 0x5d , 0x7f , 0x63 , 0x1b ,
2160- 0x62 , 0x26 , 0xd4 , 0x5f , 0x29 , 0xda , 0x41 , 0x1c ,
2161- 0x42 , 0xfa , 0x7e , 0x81 , 0x6d , 0xc0 , 0x94 , 0x8d ,
2162- 0x31 , 0xe0 , 0xdb , 0xa7 ,
2163- ]
2164- ) ) ) ;
2156+ assert_eq ! (
2157+ addr. credential,
2158+ StakeCredential :: AddrKeyHash ( KeyHash :: from( [
2159+ 0x45 , 0xde , 0xe6 , 0xee , 0x5d , 0x7f , 0x63 , 0x1b , 0x62 , 0x26 , 0xd4 , 0x5f , 0x29 , 0xda ,
2160+ 0x41 , 0x1c , 0x42 , 0xfa , 0x7e , 0x81 , 0x6d , 0xc0 , 0x94 , 0x8d , 0x31 , 0xe0 , 0xdb , 0xa7 ,
2161+ ] ) )
2162+ ) ;
21652163
21662164 let serialized_back = serde_json:: to_string ( & addr) ?;
21672165 assert_eq ! ( serialized_back, serialized) ;
0 commit comments