diff --git a/crates/nu-command/src/filters/select.rs b/crates/nu-command/src/filters/select.rs index 670def2d09..71a2389c79 100644 --- a/crates/nu-command/src/filters/select.rs +++ b/crates/nu-command/src/filters/select.rs @@ -64,12 +64,12 @@ produce a table, a list will produce a list, and a record will produce a record. Value::String { val, .. } => { let cv = CellPath { members: vec![PathMember::String { - val: val.clone(), + val, span: *col_span, optional: false, }], }; - new_columns.push(cv.clone()); + new_columns.push(cv); } Value::Int { val, internal_span } => { if val < 0 { @@ -87,7 +87,7 @@ produce a table, a list will produce a list, and a record will produce a record. optional: false, }], }; - new_columns.push(cv.clone()); + new_columns.push(cv); } x => { return Err(ShellError::CantConvert {