forked from extern/nushell
Make PipelineData helpers collect rawstreams (#969)
This commit is contained in:
@ -45,7 +45,7 @@ impl Command for Decode {
|
||||
|
||||
match input {
|
||||
PipelineData::RawStream(stream, ..) => {
|
||||
let bytes: Vec<u8> = stream.into_bytes()?;
|
||||
let bytes: Vec<u8> = stream.into_bytes()?.item;
|
||||
|
||||
let encoding = match Encoding::for_label(encoding.item.as_bytes()) {
|
||||
None => Err(ShellError::SpannedLabeledError(
|
||||
|
Reference in New Issue
Block a user