remove unwrap from seckey in linux keystorage
This commit is contained in:
parent
7af748e5ad
commit
25590164cc
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ impl BasicFileStorage {
|
|||
fs::create_dir_all(&self.credentials_dir)?;
|
||||
|
||||
let public_key = keypair.public_key().to_hex();
|
||||
let private_key = keypair.secret_key().unwrap().to_secret_hex();
|
||||
let private_key = keypair.secret_key().to_secret_hex();
|
||||
|
||||
let file_path = Path::new(&self.credentials_dir).join(&public_key);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue