make gen_keypair_file take &str (#4232)

automerge
This commit is contained in:
Rob Walker
2019-05-08 23:00:48 -07:00
committed by Grimes
parent da4c37beec
commit f7680752e7
3 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ pub fn parse_args(matches: &ArgMatches<'_>) -> Result<WalletConfig, Box<dyn erro
} else {
path.extend(&[".config", "solana", "id.json"]);
if !path.exists() {
gen_keypair_file(path.to_str().unwrap().to_string())?;
gen_keypair_file(path.to_str().unwrap())?;
println!("New keypair generated at: {:?}", path.to_str().unwrap());
}