We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c3e70e commit d8bb2fcCopy full SHA for d8bb2fc
1 file changed
src/utils.rs
@@ -11,11 +11,6 @@ use crate::term::{wants_emoji, Term};
11
#[cfg(feature = "ansi-parsing")]
12
use crate::ansi::AnsiCodeIterator;
13
14
-#[cfg(not(feature = "ansi-parsing"))]
15
-fn strip_ansi_codes(s: &str) -> &str {
16
- s
17
-}
18
-
19
fn default_colors_enabled(out: &Term) -> bool {
20
(out.features().colors_supported()
21
&& &env::var("CLICOLOR").unwrap_or_else(|_| "1".into()) != "0")
0 commit comments