Skip to content

Commit 59fcfd8

Browse files
committed
format agian
1 parent 4edf7b2 commit 59fcfd8

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

crates/solana-address-book/src/pda_seeds.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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)

crates/testsvm-quarry/src/tests/test_rewarder_management.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)