aboutsummaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2017-09-27 20:29:44 -0400
committerJoe Wilm <jwilm@users.noreply.github.com>2017-09-27 17:29:44 -0700
commit5f7885749c4d7e48869b1fc0be4d430601cdbbfa (patch)
tree77916f2d24f71c846700139bbeaacec1f8699928 /src/ansi.rs
parenteb231b3e70b87875df4bdd1974d5e94704024d70 (diff)
downloadalacritty-5f7885749c4d7e48869b1fc0be4d430601cdbbfa.tar.gz
alacritty-5f7885749c4d7e48869b1fc0be4d430601cdbbfa.zip
Use clippy = "*", update, and fix some warnings (#796)
Because there are so many clippy warnings in the current codebase, this commit removes '#![cfg_attr(feature = "clippy", deny(clippy))]', to make it easier to fix warnings incrementally.
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 26a342e4..9e682cd3 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -909,7 +909,7 @@ impl<'a, H, W> vte::Perform for Performer<'a, H, W>
'm' => {
// Sometimes a C-style for loop is just what you need
let mut i = 0; // C-for initializer
- if args.len() == 0 {
+ if args.is_empty() {
handler.terminal_attribute(Attr::Reset);
return;
}