diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-02 15:22:19 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-02 15:22:19 -0400 |
commit | 06cae9ad8cad3a7ae47f676cbeff90491a7b2b53 (patch) | |
tree | c74ce2d92a3adb74759b504de32d4c533edde4b8 /src/row.rs | |
parent | d769f11b1b96ab0a9901da1d02e3b59450180774 (diff) | |
download | vt100-rust-06cae9ad8cad3a7ae47f676cbeff90491a7b2b53.tar.gz vt100-rust-06cae9ad8cad3a7ae47f676cbeff90491a7b2b53.zip |
simplify
Diffstat (limited to 'src/row.rs')
-rw-r--r-- | src/row.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -50,7 +50,7 @@ impl Row { let mut prev_was_wide = false; let mut contents = String::new(); if let Some(max_col) = self.max_col() { - for col in col_start..=(col_end.min(max_col as u16)) { + for col in col_start..=(col_end.min(max_col)) { if prev_was_wide { prev_was_wide = false; continue; @@ -83,7 +83,7 @@ impl Row { let mut contents = String::new(); let mut prev_attrs = attrs; if let Some(max_col) = self.max_col() { - for col in col_start..=(col_end.min(max_col as u16)) { + for col in col_start..=(col_end.min(max_col)) { if prev_was_wide { prev_was_wide = false; continue; |