From 767d822cbf50da2dc698902daebb427f0f79b665 Mon Sep 17 00:00:00 2001 From: Fernando Herrera Date: Fri, 24 Sep 2021 13:20:50 +0100 Subject: [PATCH] change line format for test --- crates/nu-protocol/src/value/stream.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/nu-protocol/src/value/stream.rs b/crates/nu-protocol/src/value/stream.rs index 2bbadb42b7..ca56f39f05 100644 --- a/crates/nu-protocol/src/value/stream.rs +++ b/crates/nu-protocol/src/value/stream.rs @@ -6,9 +6,12 @@ pub struct ValueStream(pub Rc>>); impl ValueStream { pub fn into_string(self) -> String { - self.map(|x: Value| x.into_string()) - .collect::>() - .join("\n") + format!( + "[{}]", + self.map(|x: Value| x.into_string()) + .collect::>() + .join(", ") + ) } pub fn from_stream(input: impl Iterator + 'static) -> ValueStream {