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

chore: allow clippy::cast_possible_wrap linting issue

This commit is contained in:
Paul-Christian Volkmer 2025-01-12 21:21:28 +01:00
parent abb57a6c05
commit 8a6b5118a0

View File

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