diff options
author | Cristian Kubis <cristian.kubis@tsunix.de> | 2015-04-09 10:59:06 +0200 |
---|---|---|
committer | Cristian Kubis <cristian.kubis@tsunix.de> | 2015-04-09 10:59:06 +0200 |
commit | 0751b009cad95d6d6f25aac82ca65aff3e50981a (patch) | |
tree | 2726221025e97b7e15f2843a1e504515e5e1fd4e /src/output | |
parent | fc188935cdb15079af28c737354381a289244156 (diff) |
updated to latest rust nightly
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/grid.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/grid.rs b/src/output/grid.rs index abdc638..f87e916 100644 --- a/src/output/grid.rs +++ b/src/output/grid.rs @@ -3,7 +3,7 @@ use file::File; use super::lines::lines_view; use std::cmp::max; -use std::iter::{AdditiveIterator, repeat}; +use std::iter::repeat; #[derive(PartialEq, Debug, Copy, Clone)] pub struct Grid { @@ -55,7 +55,7 @@ impl Grid { } // If they all fit in the terminal, combined, then success! - if column_widths.iter().map(|&x| x).sum() < adjusted_width { + if column_widths.iter().map(|&x| x).sum::<usize>() < adjusted_width { return Some((num_lines, column_widths)); } } |