Skip to content

Commit

Permalink
fix: 🚨 Remove unused use and rebundant closure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Nov 11, 2023
1 parent 0f7a84d commit 487138a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-tauri/crypto/src/keygen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use pgp::{
types::{CompressionAlgorithm, KeyTrait, SecretKeyTrait as _},
KeyType, SecretKeyParamsBuilder, SignedPublicKey, SignedSecretKey,
};
use smallvec::{smallvec, SmallVec};
use smallvec::smallvec;
use tokio::{
fs::{self, DirBuilder},
try_join,
Expand Down Expand Up @@ -64,7 +64,7 @@ fn gen_key_pair(name: &str, email: &str) -> Result<(SignedSecretKey, SignedPubli
.expect("msg")
.generate()
.expect("Failed to generate a plain key.");
let passwd_fn = || String::new();
let passwd_fn = String::new;
let signed_secret_key = secret_key.sign(passwd_fn)?;
let public_key = signed_secret_key.public_key();
let signed_public_key = public_key.sign(&signed_secret_key, passwd_fn)?;
Expand Down

0 comments on commit 487138a

Please sign in to comment.