1
Fork 0

std: update internal uses of io::const_error!

This commit is contained in:
joboet 2024-11-25 13:49:25 +01:00
parent d39afacbdf
commit c14d137bfc
No known key found for this signature in database
GPG key ID: 704E0149B0194B3C
53 changed files with 213 additions and 246 deletions

View file

@ -41,7 +41,7 @@ impl Buffer {
match Box::try_new_uninit_slice(capacity) {
Ok(buf) => Ok(Self { buf, pos: 0, filled: 0, initialized: 0 }),
Err(_) => {
Err(io::const_io_error!(ErrorKind::OutOfMemory, "failed to allocate read buffer"))
Err(io::const_error!(ErrorKind::OutOfMemory, "failed to allocate read buffer"))
}
}
}