From 1334de72b015230f43ba66ae85a64366aa94d9ac Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Fri, 26 Jan 2024 08:45:02 -0600 Subject: [PATCH] make the `input_output_types` match on `each` and `par-each` (#11645) # Description @Yethal had a strange problem where a script would work with `each` but not `par-each`. I found this to be because the `input_output_types` were different. These io types are weird and I don't think they're correct but at least they're the same now. # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-command/src/filters/par_each.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-command/src/filters/par_each.rs b/crates/nu-command/src/filters/par_each.rs index 94ec3531f1..576a06555d 100644 --- a/crates/nu-command/src/filters/par_each.rs +++ b/crates/nu-command/src/filters/par_each.rs @@ -28,8 +28,8 @@ impl Command for ParEach { Type::List(Box::new(Type::Any)), Type::List(Box::new(Type::Any)), ), - (Type::Range, Type::List(Box::new(Type::Any))), (Type::Table(vec![]), Type::List(Box::new(Type::Any))), + (Type::Any, Type::Any), ]) .named( "threads",