mirror of
https://github.com/pcvolkmer/cert-tools.git
synced 2025-07-01 22:12:55 +00:00
chore: allow expect and unwrap here
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user