Apply suggestions from clippy 1.83

This commit is contained in:
Dirkjan Ochtman 2024-11-29 09:45:45 +01:00
parent f45bd2174d
commit 7eef2b0d7d
1 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ mod pkcs8_serde {
) -> Result<Vec<u8>, D::Error> {
struct Visitor;
impl<'de> de::Visitor<'de> for Visitor {
impl de::Visitor<'_> for Visitor {
type Value = Vec<u8>;
fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
@ -196,7 +196,7 @@ pub(crate) enum KeyOrKeyId<'a> {
KeyId(&'a str),
}
impl<'a> KeyOrKeyId<'a> {
impl KeyOrKeyId<'_> {
pub(crate) fn from_key(key: &crypto::EcdsaKeyPair) -> KeyOrKeyId<'static> {
KeyOrKeyId::Key(Jwk::new(key))
}
@ -308,7 +308,7 @@ pub struct RevocationRequest<'a> {
pub reason: Option<RevocationReason>,
}
impl<'a> Serialize for RevocationRequest<'a> {
impl Serialize for RevocationRequest<'_> {
fn serialize<S: serde::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> {
let base64 = BASE64_URL_SAFE_NO_PAD.encode(self.certificate);
let mut map = serializer.serialize_map(Some(2))?;