mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-28 22:56:29 +00:00
Comply with latest rust-ansi-term
This commit is contained in:
parent
e1693cd769
commit
43e3f742ca
@ -6,6 +6,4 @@ install:
|
|||||||
- sudo apt-get install rust-nightly cargo
|
- sudo apt-get install rust-nightly cargo
|
||||||
script:
|
script:
|
||||||
- cargo build
|
- cargo build
|
||||||
- rustc --test src/exa.rs -o exa-test
|
- cargo test
|
||||||
- ./exa-test
|
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ fn exa(options: &Options, print_header: bool, string: String) {
|
|||||||
// results are cached.
|
// results are cached.
|
||||||
|
|
||||||
let lengths: Vec<Vec<uint>> = table.iter()
|
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();
|
.collect();
|
||||||
|
|
||||||
let column_widths: Vec<uint> = range(0, options.columns.len())
|
let column_widths: Vec<uint> = range(0, options.columns.len())
|
||||||
|
Loading…
Reference in New Issue
Block a user