Added 0 formatting; closes #14

This commit is contained in:
xeovalyte 2024-06-18 13:17:07 +02:00
parent c559f03e16
commit 2318a3abb5
Signed by: xeovalyte
SSH Key Fingerprint: SHA256:kSQDrQDmKzljJzfGYcd3m9RqHi4h8rSwkZ3sQ9kBURo

View File

@ -21,7 +21,7 @@ impl Time {
time /= 60;
let minutes = time;
format!("{minutes}:{seconds}:{milliseconds}")
format!("{minutes:02}:{seconds:02}:{milliseconds:02}")
}
pub fn from_milliseconds(mut time: u32) -> Self {