mirror of
https://github.com/NotAShelf/microfetch.git
synced 2025-12-08 14:03:51 +00:00
speeding it up
This commit is contained in:
parent
ef2f6dc56e
commit
81cdc0a281
5 changed files with 24 additions and 70 deletions
|
|
@ -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"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue