Add support for 'open' (#573)

This commit is contained in:
JT
2021-12-25 06:24:55 +11:00
committed by GitHub
parent 1efae6876d
commit a811eee6b8
14 changed files with 231 additions and 44 deletions

View File

@ -359,11 +359,11 @@ impl ChannelReceiver {
}
impl Iterator for ChannelReceiver {
type Item = Vec<u8>;
type Item = Result<Vec<u8>, ShellError>;
fn next(&mut self) -> Option<Self::Item> {
match self.rx.recv() {
Ok(v) => Some(v),
Ok(v) => Some(Ok(v)),
Err(_) => None,
}
}