Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
justAnIdentity committed Nov 22, 2023
1 parent d0b91d8 commit 467a9e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/presentation/mdoc_auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ fn get_signer_key(x5chain: &CborValue) -> Result<VerifyingKey, Error> {
let signer = match x5chain {
CborValue::Text(t) => {
let x509 = x509_cert::Certificate::from_der(t.as_bytes())?;
let signer_key = x509

x509
.tbs_certificate
.subject_public_key_info
.subject_public_key;
signer_key
.subject_public_key
}
CborValue::Array(a) => match a.first() {
Some(CborValue::Text(t)) => {
Expand Down

0 comments on commit 467a9e2

Please sign in to comment.