mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
Remove unwrap() from time() function
This change is a part of the effort to enable clippy::option_unwrap_used and clippy::result_unwrap_used
This commit is contained in:
committed by
Floris Bruynooghe
parent
300fff40e3
commit
cd198223ea
@@ -486,7 +486,7 @@ pub(crate) fn dc_get_next_backup_path(
|
|||||||
pub(crate) fn time() -> i64 {
|
pub(crate) fn time() -> i64 {
|
||||||
SystemTime::now()
|
SystemTime::now()
|
||||||
.duration_since(SystemTime::UNIX_EPOCH)
|
.duration_since(SystemTime::UNIX_EPOCH)
|
||||||
.unwrap()
|
.unwrap_or_default()
|
||||||
.as_secs() as i64
|
.as_secs() as i64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user