diff options
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) {} } |
