From 5a1d99cefba5bdf355ef29c86e1206379e396c07 Mon Sep 17 00:00:00 2001 From: Fernando Herrera Date: Sat, 23 Oct 2021 21:11:19 +0100 Subject: [PATCH] plugin command --- crates/nu-plugin/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/nu-plugin/src/lib.rs b/crates/nu-plugin/src/lib.rs index da6d868b8d..0e822c5c3f 100644 --- a/crates/nu-plugin/src/lib.rs +++ b/crates/nu-plugin/src/lib.rs @@ -74,10 +74,7 @@ pub mod plugin_value { Value::String { val, .. } => { list_builder.reborrow().get(index as u32).set_string(val); } - Value::List { vals, .. } => { - let test = builder.reborrow(); - serialize_list(vals, test) - } + Value::List { vals, .. } => serialize_list(vals, builder), _ => {} } }