forked from extern/nushell
Remove some unnecessary static Vec
s (#11947)
Avoid unnecessary allocations or larger iterator structs - Turn static `Vec`s into arrays when possible - Use `std::iter::once`/`empty` where applicable - Use `bool::then_some` in `detect column` `.chain` - Drop in the bucket: de-vec-ing tests
This commit is contained in:
committed by
GitHub
parent
098527b263
commit
7884de1941
@ -605,7 +605,7 @@ impl PipelineData {
|
||||
.map(|bytes| bytes.item)
|
||||
.unwrap_or_default();
|
||||
RawStream::new(
|
||||
Box::new(vec![Ok(stderr_bytes)].into_iter()),
|
||||
Box::new(std::iter::once(Ok(stderr_bytes))),
|
||||
stderr_ctrlc,
|
||||
stderr_span,
|
||||
None,
|
||||
|
Reference in New Issue
Block a user