mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
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
@ -111,7 +111,7 @@ fn operate(
|
||||
|
||||
fn process_each_path(
|
||||
mut value: Value,
|
||||
column_paths: &Vec<CellPath>,
|
||||
column_paths: &[CellPath],
|
||||
text: &Option<String>,
|
||||
command_span: Span,
|
||||
) -> Value {
|
||||
|
Reference in New Issue
Block a user