diff options
author | Joe Wilm <joe@jwilm.com> | 2016-07-02 08:25:21 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-07-02 08:25:21 -0700 |
commit | f2e6d66a5e8ada1bd0c860eaa3d50e100a72f68b (patch) | |
tree | 276a91a1591026dc4b39b106c2742f91f9a9764f /src/term.rs | |
parent | a2ca10643f744244c635fb9b41a3c742e35213ea (diff) | |
download | alacritty-f2e6d66a5e8ada1bd0c860eaa3d50e100a72f68b.tar.gz alacritty-f2e6d66a5e8ada1bd0c860eaa3d50e100a72f68b.zip |
Improve ergonomics of iterating on grid::Row
Iterating on grid::Row types no longer requires calls to iter() or
iter_mut().
Diffstat (limited to 'src/term.rs')
-rw-r--r-- | src/term.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/term.rs b/src/term.rs index 3ffe9c47..699df8de 100644 --- a/src/term.rs +++ b/src/term.rs @@ -505,7 +505,7 @@ impl ansi::Handler for Term { ansi::LineClearMode::Right => { let row = &mut self.grid[self.cursor.y as usize]; let start = self.cursor.x as usize; - for cell in row[start..].iter_mut() { + for cell in &mut row[start..] { cell.reset(); } }, @@ -520,8 +520,8 @@ impl ansi::Handler for Term { let end = self.grid.num_rows(); for i in start..end { let row = &mut self.grid[i]; - for cell in row.iter_mut() { - cell.c = ' '; + for cell in row { + cell.reset(); } } }, |