diff --git a/src/desktop.rs b/src/desktop.rs index 0b93ea5..9d72325 100644 --- a/src/desktop.rs +++ b/src/desktop.rs @@ -1,3 +1,4 @@ +use color_eyre::Result; use std::{env, io}; pub fn get_desktop_info() -> Result { diff --git a/src/main.rs b/src/main.rs index 713bf70..30fa78a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,6 +9,7 @@ use crate::desktop::get_desktop_info; use crate::release::{get_os_pretty_name, get_system_info}; use crate::system::{get_memory_usage, get_root_disk_usage, get_shell, get_username_and_hostname}; use crate::uptime::get_current; + use color_eyre::Report; use nix::sys::sysinfo::sysinfo; diff --git a/src/system.rs b/src/system.rs index bc770b7..551a833 100644 --- a/src/system.rs +++ b/src/system.rs @@ -1,3 +1,4 @@ +use color_eyre::Result; use nix::sys::statvfs::statvfs; use nix::sys::sysinfo::SysInfo;