Use named placeholders in formatting

Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
This commit is contained in:
Mike MacCana 2024-04-26 12:05:15 -04:00 committed by GitHub
parent 0b9540cb84
commit 9cec96147b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -491,9 +491,8 @@ pub enum ClusterCommand {
}
fn get_keypair(path: String) -> Result<Keypair> {
let keypair = solana_sdk::signature::read_keypair_file(&path)
.map_err(|_| anyhow!("Unable to read keypair file ({})", path))?;
Ok(keypair)
solana_sdk::signature::read_keypair_file(&path)
.map_err(|_| anyhow!("Unable to read keypair file ({path})"))
}
pub fn entry(opts: Opts) -> Result<()> {