From 69a6886666227582b8f6ca2569ce4619fe07ed5e Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Fri, 20 Oct 2023 19:39:06 +0200 Subject: [PATCH] Replace `yansi::Paint` with `Paint` --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3946771..5563a30 100644 --- a/src/main.rs +++ b/src/main.rs @@ -38,16 +38,16 @@ fn main() -> ExitCode { fn init_color(color_mode: ColorChoice) { #[cfg(target_os = "windows")] - let color_support = yansi::Paint::enable_windows_ascii(); + let color_support = Paint::enable_windows_ascii(); #[cfg(not(target_os = "windows"))] let color_support = true; match color_mode { ColorChoice::Always => {} - ColorChoice::Never => yansi::Paint::disable(), + ColorChoice::Never => Paint::disable(), ColorChoice::Auto => { if !(color_support && env::var_os("NO_COLOR").is_none() && io::stdout().is_terminal()) { - yansi::Paint::disable(); + Paint::disable(); } } }