aboutsummaryrefslogtreecommitdiffstats
path: root/src/row.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-02 15:22:19 -0400
committerJesse Luehrs <doy@tozt.net>2019-11-02 15:22:19 -0400
commit06cae9ad8cad3a7ae47f676cbeff90491a7b2b53 (patch)
treec74ce2d92a3adb74759b504de32d4c533edde4b8 /src/row.rs
parentd769f11b1b96ab0a9901da1d02e3b59450180774 (diff)
downloadvt100-rust-06cae9ad8cad3a7ae47f676cbeff90491a7b2b53.tar.gz
vt100-rust-06cae9ad8cad3a7ae47f676cbeff90491a7b2b53.zip
simplify
Diffstat (limited to 'src/row.rs')
-rw-r--r--src/row.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/row.rs b/src/row.rs
index 3ac8881..762534a 100644
--- a/src/row.rs
+++ b/src/row.rs
@@ -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;