Skip to content

Commit f242078

Browse files
committed
style: fix clippy
1 parent 11a0024 commit f242078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/src/syscall/fs/pidfd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn sys_pidfd_open(pid: u32, flags: u32) -> AxResult<isize> {
2222
let flags = PidFdFlags::from_bits(flags).ok_or(AxError::InvalidInput)?;
2323

2424
let fd = if flags.contains(PidFdFlags::THREAD) {
25-
PidFd::new_thread(&get_task(pid)?.as_thread())
25+
PidFd::new_thread(get_task(pid)?.as_thread())
2626
} else {
2727
PidFd::new_process(&get_process_data(pid)?)
2828
};

0 commit comments

Comments
 (0)