Add support for optional list stream output formatting (#6325)

* add support for optional list stream output formatting

* cargo fmt

* table: add ValueFormatter test
This commit is contained in:
panicbit
2022-08-18 12:44:53 +02:00
committed by GitHub
parent 4ab468e65f
commit ec4e3a6d5c
21 changed files with 181 additions and 60 deletions

View File

@ -109,7 +109,7 @@ pub fn print_table_or_error(
// Make sure everything has finished
if let Some(exit_code) = exit_code {
let mut exit_code: Vec<_> = exit_code.into_iter().collect();
let mut exit_code: Vec<_> = exit_code.into_iter().map(|(value, _)| value).collect();
exit_code
.pop()
.and_then(|last_exit_code| match last_exit_code {