From 4a68c989e43551f3da0bc16e585540ede4ccb6c5 Mon Sep 17 00:00:00 2001 From: Stefan Stanciulescu Date: Mon, 1 Nov 2021 23:05:53 +0100 Subject: [PATCH] Fix test for date to-table --- crates/nu-command/src/date/to_table.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/src/date/to_table.rs b/crates/nu-command/src/date/to_table.rs index 1350be122e..91bd59af4a 100644 --- a/crates/nu-command/src/date/to_table.rs +++ b/crates/nu-command/src/date/to_table.rs @@ -69,7 +69,10 @@ impl Command for SubCommand { span, }, ]; - Some(Value::Record { cols, vals, span }) + Some(Value::List { + vals: vec![Value::Record { cols, vals, span }], + span, + }) }, }, ]