diff options
| author | Thom Chiovoloni <chiovolonit@gmail.com> | 2021-08-08 01:04:33 -0700 |
|---|---|---|
| committer | Thom Chiovoloni <chiovolonit@gmail.com> | 2022-02-04 18:47:29 -0800 |
| commit | 554918e311a1221744aa9b6d60e2f00f5b3155e5 (patch) | |
| tree | e8affa7ee0e7729cf05633c7b7989aaaa96bdd8c /library/std/src/io/tests.rs | |
| parent | 71226d717a1fb57122e47e63b97295e703319cb0 (diff) | |
| download | rust-554918e311a1221744aa9b6d60e2f00f5b3155e5.tar.gz rust-554918e311a1221744aa9b6d60e2f00f5b3155e5.zip | |
Hide Repr details from io::Error, and rework `io::Error::new_const`.
Diffstat (limited to 'library/std/src/io/tests.rs')
| -rw-r--r-- | library/std/src/io/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/io/tests.rs b/library/std/src/io/tests.rs index ea49bfe3421..eb626348564 100644 --- a/library/std/src/io/tests.rs +++ b/library/std/src/io/tests.rs @@ -185,12 +185,12 @@ fn take_eof() { impl Read for R { fn read(&mut self, _: &mut [u8]) -> io::Result<usize> { - Err(io::Error::new_const(io::ErrorKind::Other, &"")) + Err(io::const_io_error!(io::ErrorKind::Other, "")) } } impl BufRead for R { fn fill_buf(&mut self) -> io::Result<&[u8]> { - Err(io::Error::new_const(io::ErrorKind::Other, &"")) + Err(io::const_io_error!(io::ErrorKind::Other, "")) } fn consume(&mut self, _amt: usize) {} } |
