Remove the useless Ok(?)
This commit is contained in:
parent
1e4a875d8f
commit
9984d528e2
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue