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
@ -2887,7 +2887,7 @@ pub fn parse_overlay_hide(working_set: &mut StateWorkingSet, call: Box<Call>) ->
|
||||
|
||||
if !working_set
|
||||
.unique_overlay_names()
|
||||
.contains(&overlay_name.as_bytes().to_vec())
|
||||
.contains(&overlay_name.as_bytes())
|
||||
{
|
||||
working_set.error(ParseError::ActiveOverlayNotFound(overlay_name_span));
|
||||
return pipeline;
|
||||
|
Reference in New Issue
Block a user