aboutsummaryrefslogtreecommitdiff
path: root/src/util/time.rs
diff options
context:
space:
mode:
authorJoris2022-02-26 22:23:34 +0100
committerJoris2022-02-26 22:23:34 +0100
commit01a1e5e4f45dc80cd430d18492817b733fab5603 (patch)
treefa39d7abaf04d9b805a19767c088f7d61eecb509 /src/util/time.rs
parent4ff3fa15967d989658804b94e1ce035dfd3e5a5c (diff)
downloadflashcards-01a1e5e4f45dc80cd430d18492817b733fab5603.tar.gz
flashcards-01a1e5e4f45dc80cd430d18492817b733fab5603.tar.bz2
flashcards-01a1e5e4f45dc80cd430d18492817b733fab5603.zip
Fix linter warnings
Diffstat (limited to 'src/util/time.rs')
-rw-r--r--src/util/time.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/time.rs b/src/util/time.rs
index d9a9f72..b8a85e6 100644
--- a/src/util/time.rs
+++ b/src/util/time.rs
@@ -3,7 +3,7 @@ use std::thread;
use std::time::SystemTime;
pub fn seconds_since_unix_epoch() -> Result<u64> {
- Ok(seconds_since_unix_epoch_of(SystemTime::now())?)
+ seconds_since_unix_epoch_of(SystemTime::now())
}
pub fn seconds_since_unix_epoch_of(time: SystemTime) -> Result<u64> {