diff options
author | Ben S <ogham@bsago.me> | 2015-03-22 19:46:45 +0000 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-03-22 19:46:45 +0000 |
commit | 9c2858e447ac42296ca907747173d4585297fc64 (patch) | |
tree | ee3ebfa04be31cf0a52ebfc6d9e60d40004cae6b /src/output | |
parent | 1986c504bad331972117c753e6376317e127db7c (diff) |
Upgrade to latest Rust
- old_path::Path isn't imported by default anymore
- range -> ..
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/details.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/details.rs b/src/output/details.rs index dba0b0c..1414e61 100644 --- a/src/output/details.rs +++ b/src/output/details.rs @@ -170,7 +170,7 @@ impl Table { // Work out the list of column widths by finding the longest cell for // each column, then formatting each cell in that column to be the // width of that one. - let column_widths: Vec<usize> = range(0, self.columns.len()) + let column_widths: Vec<usize> = (0 .. self.columns.len()) .map(|n| self.rows.iter().map(|row| row.cells[n].length).max().unwrap_or(0)) .collect(); |