1
0
Fork 0
forked from wry/wry

all: set rust edition to 2024

This commit is contained in:
Julian Orth 2025-02-21 10:44:29 +01:00
parent 02a18f620b
commit 3338909170
515 changed files with 1225 additions and 1187 deletions

View file

@ -4,7 +4,7 @@ use {
time::Time,
utils::{
buf::Buf,
buffd::{BufFdError, BUF_SIZE},
buffd::{BUF_SIZE, BufFdError},
oserror::OsError,
},
},
@ -13,7 +13,7 @@ use {
mem::{self},
rc::Rc,
},
uapi::{c, OwnedFd},
uapi::{OwnedFd, c},
};
pub(super) const OUT_BUF_SIZE: usize = 2 * BUF_SIZE;
@ -151,7 +151,7 @@ impl BufFdOut {
match res {
Ok(n) => read_pos += n,
Err(IoUringError::OsError(OsError(c::ECONNRESET))) => {
return Err(BufFdError::Closed)
return Err(BufFdError::Closed);
}
Err(e) => return Err(BufFdError::Io(e)),
}