diff --git a/.travis.yml b/.travis.yml index 8fef990..dd5a472 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/src/exa.rs b/src/exa.rs index 10103fb..5ac079b 100644 --- a/src/exa.rs +++ b/src/exa.rs @@ -89,7 +89,7 @@ fn exa(options: &Options, print_header: bool, string: String) { // results are cached. let lengths: Vec> = 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 = range(0, options.columns.len())