Bump clippy to use Rust 1.71 (#513)
This commit is contained in:
committed by
GitHub
parent
485d49a6c8
commit
de142256d0
@@ -82,7 +82,7 @@ jobs:
|
|||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: 1.65.0
|
toolchain: 1.71.0
|
||||||
components: clippy
|
components: clippy
|
||||||
override: true
|
override: true
|
||||||
- run: sudo apt-get install libpcsclite-dev
|
- run: sudo apt-get install libpcsclite-dev
|
||||||
|
|||||||
+1
-1
@@ -182,7 +182,7 @@ pub fn print_cert_info(
|
|||||||
};
|
};
|
||||||
let cert = &cert.cert;
|
let cert = &cert.cert;
|
||||||
|
|
||||||
let fingerprint = Sha256::digest(&cert.to_der().unwrap());
|
let fingerprint = Sha256::digest(cert.to_der().unwrap());
|
||||||
let slot_id: u8 = slot.into();
|
let slot_id: u8 = slot.into();
|
||||||
print_cert_attr(stream, "Slot", format!("{:x}", slot_id))?;
|
print_cert_attr(stream, "Slot", format!("{:x}", slot_id))?;
|
||||||
print_cert_attr(
|
print_cert_attr(
|
||||||
|
|||||||
+2
-2
@@ -71,7 +71,7 @@ impl<T: MetadataType> Default for Metadata<T> {
|
|||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Metadata {
|
Metadata {
|
||||||
inner: Zeroizing::new(vec![]),
|
inner: Zeroizing::new(vec![]),
|
||||||
_marker: PhantomData::default(),
|
_marker: PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -82,7 +82,7 @@ impl<T: MetadataType> Metadata<T> {
|
|||||||
let data = txn.fetch_object(T::obj_id())?;
|
let data = txn.fetch_object(T::obj_id())?;
|
||||||
Ok(Metadata {
|
Ok(Metadata {
|
||||||
inner: Tlv::parse_single(data, T::tag())?,
|
inner: Tlv::parse_single(data, T::tag())?,
|
||||||
_marker: PhantomData::default(),
|
_marker: PhantomData,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user