all: set rust edition to 2024
This commit is contained in:
parent
02a18f620b
commit
3338909170
515 changed files with 1225 additions and 1187 deletions
|
|
@ -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)),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue