use color_eyre::Result in most functions

This commit is contained in:
raf 2024-08-05 01:37:32 +03:00
parent 0fb8fbaae6
commit 7bed1f583b
Signed by: NotAShelf
GPG key ID: AF26552424E53993
3 changed files with 3 additions and 0 deletions

View file

@ -1,3 +1,4 @@
use color_eyre::Result;
use std::{env, io};
pub fn get_desktop_info() -> Result<String, io::Error> {

View file

@ -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;

View file

@ -1,3 +1,4 @@
use color_eyre::Result;
use nix::sys::statvfs::statvfs;
use nix::sys::sysinfo::SysInfo;