refactor: clean up a few things

I've decided to keep lazy_static for now as std::sync::LazyLock seems to
have a slightly bigger impact on binary size.
This commit is contained in:
ErrorNoInternet 2025-04-15 03:19:53 -04:00
commit c139026704
No known key found for this signature in database
GPG key ID: 2486BFB7B1E6A4A3
5 changed files with 16 additions and 17 deletions

View file

@ -49,7 +49,6 @@ pub fn get_root_disk_usage() -> Result<String, io::Error> {
}
pub fn get_memory_usage() -> Result<String, io::Error> {
#[inline(always)]
fn parse_memory_info() -> Result<(f64, f64), io::Error> {
let mut total_memory_kb = 0.0;
let mut available_memory_kb = 0.0;