Add lock token to pipe queue without solving borrow checker

This commit is contained in:
Wildan M
2026-03-11 08:12:07 +07:00
parent 7ebb5f2a3d
commit 046c8ced0d
3 changed files with 32 additions and 26 deletions
+2 -2
View File
@@ -986,7 +986,7 @@ pub fn bulk_add_fds(
descriptions: Vec<Arc<LockedFileDescription>>,
payload: UserSliceRw,
cloexec: bool,
token: &mut CleanLockToken,
token: &mut LockToken<L1>,
) -> Result<usize> {
let cnt = descriptions.len();
if payload.len() != cnt * size_of::<usize>() {
@@ -1020,7 +1020,7 @@ pub fn bulk_insert_fds(
descriptions: Vec<Arc<LockedFileDescription>>,
payload: UserSliceRw,
cloexec: bool,
token: &mut CleanLockToken,
token: &mut LockToken<L1>,
) -> Result<usize> {
let cnt = descriptions.len();
if payload.len() != cnt * size_of::<usize>() {