Better representation in nested dataframes (#3875)

* better dataframe representation in nested df

* Error message correction
This commit is contained in:
Fernando Herrera
2021-07-31 15:02:32 +01:00
committed by GitHub
parent 5826126284
commit 6984185e61
5 changed files with 79 additions and 10 deletions

View File

@ -37,7 +37,10 @@ impl WholeStreamCommand for Reverse {
}
}
#[allow(clippy::needless_collect)]
fn reverse(args: CommandArgs) -> Result<ActionStream, ShellError> {
// Clippy warning should be ignored
// This collect is needed to apply rev
let input = args.input.collect::<Vec<_>>();
Ok((input.into_iter().rev().map(ReturnSuccess::value)).into_action_stream())
}