Skip to content

Commit a1790e8

Browse files
authored
Reordered match arms
1 parent 7c05ef5 commit a1790e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1957,9 +1957,9 @@ impl<R: Read> Iterator for Bytes<R> {
19571957
let mut byte = 0;
19581958
loop {
19591959
return match self.inner.read(slice::from_mut(&mut byte)) {
1960-
Err(ref e) if e.kind() == ErrorKind::Interrupted => continue,
19611960
Ok(0) => None,
19621961
Ok(..) => Some(Ok(byte)),
1962+
Err(ref e) if e.kind() == ErrorKind::Interrupted => continue,
19631963
Err(e) => Some(Err(e)),
19641964
};
19651965
}

0 commit comments

Comments
 (0)