diff options
author | Pierre-Henri Symoneaux <phsym@users.noreply.github.com> | 2018-12-17 16:07:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-17 16:07:53 +0100 |
commit | fa70ca6fdb7d0d98a04961c1a74105e4f797661d (patch) | |
tree | 7d60a3ac47981c1ffe70f2eb53b993f50b4cc25c /src/row.rs | |
parent | 835bdce85699b5031640aa7ad72c5beeccd7beb7 (diff) | |
parent | 43a3cdcee50dd13c49daf57badb85709d85287f6 (diff) |
Merge pull request #95 from xanonid/code_style_improvements
Improve code style (suggestion by clippy)
Diffstat (limited to 'src/row.rs')
-rw-r--r-- | src/row.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -66,7 +66,7 @@ impl Row { pub fn get_column_width(&self, column: usize, format: &TableFormat) -> usize { let mut i = 0; for c in &self.cells { - if i + c.get_hspan()-1 >= column { + if i + c.get_hspan() > column { if c.get_hspan() == 1 { return c.get_width(); } |