Skip to content

Commit

Permalink
Resolve manual_inspect clippy warning
Browse files Browse the repository at this point in the history
Signed-off-by: David Mulder <[email protected]>
  • Loading branch information
dmulder committed Oct 31, 2024
1 parent 43048be commit 6280fd0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/soft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,9 @@ impl Tpm for SoftTpm {
error!(?ossl_err);
TpmError::IdentityKeySignature
})
.map(|sig| {
let res = openssl::ecdsa::EcdsaSig::from_der(&sig);
.inspect(|sig| {
let res = openssl::ecdsa::EcdsaSig::from_der(sig);
tracing::debug!(res = %res.is_ok());

sig
})
}

Expand Down

0 comments on commit 6280fd0

Please sign in to comment.