summaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ansi.rs')
-rw-r--r--src/ansi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ansi.rs b/src/ansi.rs
index 47bf6c941..e25a8257d 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -25,7 +25,7 @@ pub fn strip_ansi_codes(s: &str) -> Cow<str> {
}
pub fn use_color() -> bool {
- *NO_COLOR == false
+ !(*NO_COLOR)
}
pub fn red_bold(s: String) -> impl fmt::Display {