Skip to content

Commit

Permalink
Fix libjose clippy lint (#348)
Browse files Browse the repository at this point in the history
Remove needless borrow in libjose
  • Loading branch information
l1h3r committed Aug 4, 2021
1 parent 17cb994 commit 9987287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libjose/src/jwk/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ impl Jwk {
[..] => return Err(Error::KeyError("multi prime keys are not supported")),
};

let values: RsaComputed = RsaComputed::new(secret.d(), &p, &q)?;
let values: RsaComputed = RsaComputed::new(secret.d(), p, q)?;

Ok(Jwk::from_params(JwkParamsRsa {
n: encode_b64(secret.n().to_bytes_be()),
Expand Down

0 comments on commit 9987287

Please sign in to comment.