speeding it up

This commit is contained in:
raf 2024-08-04 12:44:12 +03:00
commit 81cdc0a281
Signed by: NotAShelf
GPG key ID: AF26552424E53993
5 changed files with 24 additions and 70 deletions

View file

@ -25,7 +25,7 @@ pub fn get_current() -> Result<String, io::Error> {
let hours = (total_minutes % (60 * 24)) / 60;
let minutes = total_minutes % 60;
let mut parts = Vec::new();
let mut parts = Vec::with_capacity(3);
if days > 0 {
parts.push(format!("{days} days"));
}