File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,17 @@ pub fn seed_to_string(seed: &dyn SeedPart) -> String {
5050
5151 // Check if it's likely a string (all printable ASCII)
5252 if bytes. iter ( ) . all ( |& b| b. is_ascii_graphic ( ) || b == b' ' )
53- && let Ok ( s) = std:: str:: from_utf8 ( bytes) {
54- return s. to_string ( ) ;
55- }
53+ && let Ok ( s) = std:: str:: from_utf8 ( bytes)
54+ {
55+ return s. to_string ( ) ;
56+ }
5657
5758 // Check if it's a pubkey (32 bytes)
5859 if bytes. len ( ) == 32
59- && let Ok ( pubkey) = Pubkey :: try_from ( bytes) {
60- return pubkey. to_string ( ) ;
61- }
60+ && let Ok ( pubkey) = Pubkey :: try_from ( bytes)
61+ {
62+ return pubkey. to_string ( ) ;
63+ }
6264
6365 // Default to hex encoding for other byte arrays
6466 hex:: encode ( bytes)
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ fn test_set_rewards_share_authority_check() -> Result<()> {
3333 quarry_mine:: client:: args:: SetRewardsShare { new_share } ,
3434 ) ;
3535
36- env. execute_ixs_with_signers ( & [ set_share_ix. clone ( ) ] , & [ & authority] )
36+ env. execute_ixs_with_signers ( & [ set_share_ix] , & [ & authority] )
3737 . succeeds ( ) ?;
3838
3939 // Verify the share was updated
You can’t perform that action at this time.
0 commit comments