Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
sdk: keypair - drop superfluous iter()
Browse files Browse the repository at this point in the history
  • Loading branch information
t-nelson committed May 11, 2021
1 parent 967840a commit dbac387
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sdk/src/signer/keypair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ impl Keypair {

/// Returns this `Keypair` as a base58-encoded string
pub fn to_base58_string(&self) -> String {
// Remove .iter() once we're rust 1.47+
bs58::encode(&self.0.to_bytes().iter()).into_string()
bs58::encode(&self.0.to_bytes()).into_string()
}

/// Gets this `Keypair`'s SecretKey
Expand Down

0 comments on commit dbac387

Please sign in to comment.