From a990de90fe41456a23e58bd087d2f107d321f3a1 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 19 Jul 2024 16:37:58 +0400 Subject: Deleted vendor folder --- vendor/anstyle-wincon/src/ansi.rs | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 vendor/anstyle-wincon/src/ansi.rs (limited to 'vendor/anstyle-wincon/src/ansi.rs') diff --git a/vendor/anstyle-wincon/src/ansi.rs b/vendor/anstyle-wincon/src/ansi.rs deleted file mode 100644 index 6ac7193..0000000 --- a/vendor/anstyle-wincon/src/ansi.rs +++ /dev/null @@ -1,25 +0,0 @@ -//! Low-level ANSI-styling - -/// Write ANSI colored text to the stream -pub fn write_colored( - stream: &mut S, - fg: Option, - bg: Option, - data: &[u8], -) -> std::io::Result { - let non_default = fg.is_some() || bg.is_some(); - - if non_default { - if let Some(fg) = fg { - write!(stream, "{}", fg.render_fg())?; - } - if let Some(bg) = bg { - write!(stream, "{}", bg.render_bg())?; - } - } - let written = stream.write(data)?; - if non_default { - write!(stream, "{}", anstyle::Reset.render())?; - } - Ok(written) -} -- cgit v1.2.3