forked from extern/nushell
Use slices directly instead of &Vec
(#10328)
Simplifies the signature, makes it more flexible. Detected a few unnecessary allocations in the process.
This commit is contained in:
committed by
GitHub
parent
84c10de864
commit
e90b099622
@ -77,8 +77,7 @@ pub fn sort(
|
||||
));
|
||||
}
|
||||
|
||||
if let Some(nonexistent) = nonexistent_column(sort_columns.clone(), record.cols.clone())
|
||||
{
|
||||
if let Some(nonexistent) = nonexistent_column(&sort_columns, &record.cols) {
|
||||
return Err(ShellError::CantFindColumn {
|
||||
col_name: nonexistent,
|
||||
span,
|
||||
|
Reference in New Issue
Block a user