diff --git a/crates/nu-cli/src/completions/variable_completions.rs b/crates/nu-cli/src/completions/variable_completions.rs index 3173d4289..d09a09f77 100644 --- a/crates/nu-cli/src/completions/variable_completions.rs +++ b/crates/nu-cli/src/completions/variable_completions.rs @@ -268,7 +268,7 @@ fn nested_suggestions( output } Value::List { vals, span: _ } => { - for column_name in get_columns(vals.iter()) { + for column_name in get_columns(vals.as_slice()) { output.push(Suggestion { value: column_name, description: None, @@ -323,7 +323,7 @@ fn recursive_value(val: Value, sublevels: Vec>) -> Value { }; } Value::List { vals, span } => { - for col in get_columns(vals.iter()) { + for col in get_columns(vals.as_slice()) { if col.as_bytes().to_vec() == next_sublevel { return recursive_value( Value::List { vals, span }