Reordered match arms
This commit is contained in:
parent
7c05ef5db0
commit
a1790e8c20
1 changed files with 1 additions and 1 deletions
|
@ -1957,9 +1957,9 @@ impl<R: Read> Iterator for Bytes<R> {
|
|||
let mut byte = 0;
|
||||
loop {
|
||||
return match self.inner.read(slice::from_mut(&mut byte)) {
|
||||
Err(ref e) if e.kind() == ErrorKind::Interrupted => continue,
|
||||
Ok(0) => None,
|
||||
Ok(..) => Some(Ok(byte)),
|
||||
Err(ref e) if e.kind() == ErrorKind::Interrupted => continue,
|
||||
Err(e) => Some(Err(e)),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue