diff options
author | Christian Duerr <contact@christianduerr.com> | 2018-05-11 20:22:36 +0200 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2018-05-11 16:54:19 -0700 |
commit | e34dccdabf210612666cbb9d22d7afff23487eaf (patch) | |
tree | 01cfc895cf42fc3f31427cc4543ab62265af3eb8 /src/term | |
parent | 57281363503ddd1ebb373ed5de2b84c79d5aa3aa (diff) | |
download | alacritty-e34dccdabf210612666cbb9d22d7afff23487eaf.tar.gz alacritty-e34dccdabf210612666cbb9d22d7afff23487eaf.zip |
Fix clippy lints
Diffstat (limited to 'src/term')
-rw-r--r-- | src/term/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index 5ba192ff..4f56e7fc 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -917,8 +917,9 @@ impl Term { let range = Some(cols.start..line_end); if cols.end >= grid.num_cols() - 1 { - range.as_ref() - .map(|range| self.maybe_newline(grid, line, range.end)); + if let Some(ref range) = range { + self.maybe_newline(grid, line, range.end); + } } range |