mirror of
https://github.com/NotAShelf/microfetch.git
synced 2024-11-26 16:56:47 +00:00
use color_eyre::Result in most functions
This commit is contained in:
parent
0fb8fbaae6
commit
7bed1f583b
3 changed files with 3 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
use color_eyre::Result;
|
||||
use std::{env, io};
|
||||
|
||||
pub fn get_desktop_info() -> Result<String, io::Error> {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
use color_eyre::Result;
|
||||
use nix::sys::statvfs::statvfs;
|
||||
use nix::sys::sysinfo::SysInfo;
|
||||
|
||||
|
|
Loading…
Reference in a new issue