summaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
authorbokuweb <bokuweb@users.noreply.github.com>2019-02-09 01:14:33 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-02-08 11:14:33 -0500
commitca397f6793604a2988fce5577b2085abd20d646a (patch)
tree341c1180536532ebd5d8fc61a90ea4b61b741c20 /src/ansi.rs
parent46804e50ed3941cba9a7c6b12c77c73c988ddf62 (diff)
fix clippy warnings (#1711)
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 {