aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_common/src/system.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-28 00:06:40 +0000
committerFuwn <[email protected]>2021-05-28 00:06:40 +0000
commitd87b4825480f938cfa552421e220d8f85a1bee10 (patch)
treed9c69c0dc4f5a9e876460d10e101d936f424bee5 /crates/whirl_common/src/system.rs
parentMerge branch 'develop' of https://github.com/Whirlsplash/whirl into develop (diff)
downloadwhirl-d87b4825480f938cfa552421e220d8f85a1bee10.tar.xz
whirl-d87b4825480f938cfa552421e220d8f85a1bee10.zip
fix(global): a lot of clippy warnings
This change makes clippy **a lot** more strict.
Diffstat (limited to 'crates/whirl_common/src/system.rs')
-rw-r--r--crates/whirl_common/src/system.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/whirl_common/src/system.rs b/crates/whirl_common/src/system.rs
index 3b4806b..2fb79e7 100644
--- a/crates/whirl_common/src/system.rs
+++ b/crates/whirl_common/src/system.rs
@@ -17,6 +17,7 @@ fn make_parts(t: usize, steps: &[usize], mut accum: Vec<usize>) -> Vec<usize> {
}
/// Convert a Unix (Epoch) Timestamp to a human-readable format.
+#[must_use]
pub fn seconds_to_hrtime(seconds: usize) -> String {
let word = ["week", "day", "hour", "min", "sec"];