about summary refs log tree commit diff
path: root/library/std/src/io/cursor.rs
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2024-11-25 13:49:25 +0100
committerjoboet <jonasboettiger@icloud.com>2024-11-26 18:38:24 +0100
commitc14d137bfc5133f5a38fad2f58e30fed9c47ffe2 (patch)
tree39c74cdea7465778402cd3bcba499b9317d6c606 /library/std/src/io/cursor.rs
parentd39afacbdfbc4fb1f8a6dcdb4af7c357bae8f7db (diff)
downloadrust-c14d137bfc5133f5a38fad2f58e30fed9c47ffe2.tar.gz
rust-c14d137bfc5133f5a38fad2f58e30fed9c47ffe2.zip
std: update internal uses of `io::const_error!`
Diffstat (limited to 'library/std/src/io/cursor.rs')
-rw-r--r--library/std/src/io/cursor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/io/cursor.rs b/library/std/src/io/cursor.rs
index fbfdb4fa023..b2ffeb0f95d 100644
--- a/library/std/src/io/cursor.rs
+++ b/library/std/src/io/cursor.rs
@@ -304,7 +304,7 @@ where
                 self.pos = n;
                 Ok(self.pos)
             }
-            None => Err(io::const_io_error!(
+            None => Err(io::const_error!(
                 ErrorKind::InvalidInput,
                 "invalid seek to a negative or overflowing position",
             )),
@@ -446,7 +446,7 @@ fn reserve_and_pad<A: Allocator>(
     buf_len: usize,
 ) -> io::Result<usize> {
     let pos: usize = (*pos_mut).try_into().map_err(|_| {
-        io::const_io_error!(
+        io::const_error!(
             ErrorKind::InvalidInput,
             "cursor position exceeds maximum possible vector length",
         )