diff --git a/crates/nu-command/src/filters/first.rs b/crates/nu-command/src/filters/first.rs index 58edcd787..1d2275984 100644 --- a/crates/nu-command/src/filters/first.rs +++ b/crates/nu-command/src/filters/first.rs @@ -71,7 +71,7 @@ fn first_helper( if input_peek.peek().is_some() { match input_peek.peek().unwrap().get_type() { Type::Binary => { - match &mut input_peek.next_if(|val| val.get_type() == Type::Binary) { + match &mut input_peek.next() { Some(v) => match &v { Value::Binary { val, .. } => { let bytes = val;