diff options
author | bokuweb <bokuweb@users.noreply.github.com> | 2019-02-09 01:14:33 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-08 11:14:33 -0500 |
commit | ca397f6793604a2988fce5577b2085abd20d646a (patch) | |
tree | 341c1180536532ebd5d8fc61a90ea4b61b741c20 /src/ansi.rs | |
parent | 46804e50ed3941cba9a7c6b12c77c73c988ddf62 (diff) |
fix clippy warnings (#1711)
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 2 |
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 { |