mirror of
https://github.com/NotAShelf/microfetch.git
synced 2025-11-04 23:52:20 +00:00
get rid of color_eyre
Should never have added it. Annoyingly long compile times for no reason...
This commit is contained in:
parent
4fff13a51f
commit
592fb58474
6 changed files with 21 additions and 128 deletions
|
|
@ -9,12 +9,9 @@ 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 std::io::Write;
|
||||
|
||||
fn main() -> Result<(), Report> {
|
||||
color_eyre::install()?;
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let args: Vec<String> = std::env::args().collect();
|
||||
if args.len() > 1 && args[1] == "--version" {
|
||||
println!("Microfetch {}", env!("CARGO_PKG_VERSION"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue