Skip to content

Commit

Permalink
Satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Feb 3, 2025
1 parent bf1c273 commit 1791308
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions aws-lc-rs/src/evp_pkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ impl PartialEq<Self> for LcPtr<EVP_PKEY> {
/// Only compares params and public key
fn eq(&self, other: &Self) -> bool {
// EVP_PKEY_cmp only compares params and public key
if 1 == unsafe { EVP_PKEY_cmp(*self.as_const(), *other.as_const()) } {
true
} else {
false
}
1 == unsafe { EVP_PKEY_cmp(*self.as_const(), *other.as_const()) }
}
}

Expand Down Expand Up @@ -107,7 +103,7 @@ impl LcPtr<EVP_PKEY> {
let mut cbb = LcCBB::new(self.key_size_bytes() * 5);
if 1 != unsafe { EVP_marshal_public_key(cbb.as_mut_ptr(), *self.as_const()) } {
return Err(Unspecified);
};
}
cbb.into_vec()
}

Expand Down

0 comments on commit 1791308

Please sign in to comment.