Skip to content

Commit

Permalink
Resolve clippy warnings from nightly (pyca#11695)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Oct 18, 2024
1 parent 6ac863b commit 77e15b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/rust/cryptography-x509/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl<'a> asn1::Asn1Readable<'a> for RawTlv<'a> {
true
}
}
impl<'a> asn1::Asn1Writable for RawTlv<'a> {
impl asn1::Asn1Writable for RawTlv<'_> {
fn write(&self, w: &mut asn1::Writer<'_>) -> asn1::WriteResult {
w.write_tlv(self.tag, move |dest| dest.push_slice(self.value))
}
Expand Down Expand Up @@ -471,7 +471,7 @@ impl<'a> asn1::SimpleAsn1Readable<'a> for UnvalidatedVisibleString<'a> {
}
}

impl<'a> asn1::SimpleAsn1Writable for UnvalidatedVisibleString<'a> {
impl asn1::SimpleAsn1Writable for UnvalidatedVisibleString<'_> {
const TAG: asn1::Tag = asn1::VisibleString::TAG;
fn write_data(&self, _: &mut asn1::WriteBuf) -> asn1::WriteResult {
unimplemented!();
Expand All @@ -487,7 +487,7 @@ impl<'a> Utf8StoredBMPString<'a> {
}
}

impl<'a> asn1::SimpleAsn1Writable for Utf8StoredBMPString<'a> {
impl asn1::SimpleAsn1Writable for Utf8StoredBMPString<'_> {
const TAG: asn1::Tag = asn1::BMPString::TAG;
fn write_data(&self, writer: &mut asn1::WriteBuf) -> asn1::WriteResult {
for ch in self.0.encode_utf16() {
Expand Down Expand Up @@ -531,7 +531,7 @@ impl<'a, T: asn1::Asn1Readable<'a>> asn1::Asn1Readable<'a> for WithTlv<'a, T> {
}
}

impl<'a, T: asn1::Asn1Writable> asn1::Asn1Writable for WithTlv<'a, T> {
impl<T: asn1::Asn1Writable> asn1::Asn1Writable for WithTlv<'_, T> {
fn write(&self, w: &mut asn1::Writer<'_>) -> asn1::WriteResult<()> {
self.value.write(w)
}
Expand Down
2 changes: 1 addition & 1 deletion src/rust/cryptography-x509/src/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl<'a> asn1::SimpleAsn1Readable<'a> for UnvalidatedIA5String<'a> {
}
}

impl<'a> asn1::SimpleAsn1Writable for UnvalidatedIA5String<'a> {
impl asn1::SimpleAsn1Writable for UnvalidatedIA5String<'_> {
const TAG: asn1::Tag = asn1::IA5String::TAG;
fn write_data(&self, dest: &mut asn1::WriteBuf) -> asn1::WriteResult {
dest.push_slice(self.0.as_bytes())
Expand Down

0 comments on commit 77e15b9

Please sign in to comment.