Comply with latest rust-ansi-term

This commit is contained in:
Ben S 2014-07-02 21:47:43 +01:00
parent e1693cd769
commit 43e3f742ca
2 changed files with 2 additions and 4 deletions

View File

@ -6,6 +6,4 @@ install:
- sudo apt-get install rust-nightly cargo
script:
- cargo build
- rustc --test src/exa.rs -o exa-test
- ./exa-test
- cargo test

View File

@ -89,7 +89,7 @@ fn exa(options: &Options, print_header: bool, string: String) {
// results are cached.
let lengths: Vec<Vec<uint>> = table.iter()
.map(|row| row.iter().map(|col| strip_formatting(col).len()).collect())
.map(|row| row.iter().map(|col| strip_formatting(col.clone()).len()).collect())
.collect();
let column_widths: Vec<uint> = range(0, options.columns.len())