Remove the useless Ok(?)

This commit is contained in:
Rodolphe Bréard 2024-02-15 11:48:13 +01:00
parent 1e4a875d8f
commit 9984d528e2

View file

@ -53,9 +53,9 @@ impl InputKeyMaterial {
fn bytes_to_system_time(ts_slice: &[u8]) -> Result<SystemTime, Error> { fn bytes_to_system_time(ts_slice: &[u8]) -> Result<SystemTime, Error> {
let ts_array: [u8; 8] = ts_slice.try_into().unwrap(); let ts_array: [u8; 8] = ts_slice.try_into().unwrap();
let ts = u64::from_le_bytes(ts_array); let ts = u64::from_le_bytes(ts_array);
Ok(SystemTime::UNIX_EPOCH SystemTime::UNIX_EPOCH
.checked_add(Duration::from_secs(ts)) .checked_add(Duration::from_secs(ts))
.ok_or(Error::SystemTimeReprError(ts))?) .ok_or(Error::SystemTimeReprError(ts))
} }
} }