Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit 0b204bd

Browse files
author
cyh21
committed
fix clippy v3
1 parent 7564469 commit 0b204bd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

core/src/task.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ impl TaskExt {
109109
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
110110
unsafe {
111111
new_task
112-
.ctx_mut().
113-
set_tls(axhal::arch::read_thread_pointer().into());
112+
.ctx_mut()
113+
.set_tls(axhal::arch::read_thread_pointer().into());
114114
}
115115
let current_task = current();
116116
let mut current_aspace = current_task.task_ext().aspace.lock();
@@ -149,7 +149,8 @@ impl TaskExt {
149149
new_task.init_task_ext(new_task_ext);
150150
let new_task_ref = axtask::spawn_task(new_task);
151151
info!(
152-
"clone task: {} -> {}", current_task.id_name(),
152+
"clone task: {} -> {}",
153+
current_task.id_name(),
153154
new_task_ref.id_name()
154155
);
155156
current_task.task_ext().children.lock().push(new_task_ref);
@@ -323,7 +324,7 @@ pub unsafe fn wait_pid(pid: i32, exit_code_ptr: *mut i32) -> Result<u64, WaitSta
323324
let mut answer_id: u64 = 0;
324325
let mut answer_status = WaitStatus::NotExist;
325326
info!(
326-
"wait pid _{}_ with exit_code_ptr _{:?}_",
327+
"wait pid _{}_ with exit_code_ptr _{:?}_",
327328
pid, exit_code_ptr
328329
);
329330
for (index, child) in curr_task.task_ext().children.lock().iter().enumerate() {

0 commit comments

Comments
 (0)