diff options
| author | Nathan West <Lucretiel@users.noreply.github.com> | 2018-12-17 17:43:52 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-17 17:43:52 -0800 |
| commit | a1790e8c200335b6f41f09bb7c7d17bd65b43f8a (patch) | |
| tree | 15dab96a66371213a1e2a0f0adb30ffc52eef229 /src/libstd | |
| parent | 7c05ef5db076e981f4e1ed600138053cc766bbeb (diff) | |
| download | rust-a1790e8c200335b6f41f09bb7c7d17bd65b43f8a.tar.gz rust-a1790e8c200335b6f41f09bb7c7d17bd65b43f8a.zip | |
Reordered match arms
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index d89c6af5b0b..e102cb49930 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -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)), }; } |
