sdk: keypair - drop superfluous iter()

This commit is contained in:
Trent Nelson 2021-05-10 23:46:36 -06:00 committed by Trent Nelson
parent 967840aed6
commit dbac38702a
1 changed files with 1 additions and 2 deletions

View File

@ -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