1
0
mirror of https://github.com/pcvolkmer/cert-tools.git synced 2025-04-19 17:06:49 +00:00

chore: allow expect and unwrap here

This commit is contained in:
Paul-Christian Volkmer 2025-01-06 17:11:47 +01:00
parent dbc28432b8
commit f26b486553

View File

@ -37,6 +37,7 @@ pub fn hex_encode<T: AsRef<[u8]>>(s: T) -> String {
.to_ascii_uppercase() .to_ascii_uppercase()
} }
#[allow(clippy::expect_used, clippy::unwrap_used)]
fn asn1time(time: &SystemTime) -> Asn1Time { fn asn1time(time: &SystemTime) -> Asn1Time {
Asn1Time::from_unix( Asn1Time::from_unix(
time.duration_since(UNIX_EPOCH) time.duration_since(UNIX_EPOCH)