Compare commits

...

2 Commits

Author SHA1 Message Date
Mike MacCana 5556223cb3
Merge 9cec96147b into 81c8c556e8 2024-04-26 16:05:17 +00:00
Mike MacCana 9cec96147b
Use named placeholders in formatting
Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
2024-04-26 12:05:15 -04:00
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<()> {