remove debug statement, fix clippy on non-windows

This commit is contained in:
gluaxspeed 2021-07-11 23:58:23 -07:00
parent a4575c8a00
commit d50473ec95

View File

@ -16,7 +16,7 @@
use std::{fmt, sync::Once};
use anyhow::{anyhow, Result};
use anyhow::Result;
use colored::Colorize;
use tracing::{event::Event, subscriber::Subscriber};
use tracing_subscriber::{
@ -215,10 +215,7 @@ pub fn init_logger(_app_name: &'static str, verbosity: usize) -> Result<()> {
#[cfg(target_family = "windows")]
match ansi_term::enable_ansi_support() {
Ok(_) => {}
Err(_) => {
println!("YOTE");
return Err(anyhow!("Error: Failedto enable ansi_support"));
}
Err(_) => return Err(anyhow::anyhow!("Error: Failedto enable ansi_support")),
};
let subscriber = FmtSubscriber::builder()