Skip to content

Commit 87fc148

Browse files
fogtimkroening
authored andcommitted
fix: clippy::uninlined_format_args
1 parent e4ac074 commit 87fc148

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/mm/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,6 @@ pub(crate) fn unmap(virtual_address: VirtAddr, size: usize) {
343343
PageAlloc::deallocate(range);
344344
}
345345
} else {
346-
panic!(
347-
"No page table entry for virtual address {:p}",
348-
virtual_address
349-
);
346+
panic!("No page table entry for virtual address {virtual_address:p}");
350347
}
351348
}

src/syscalls/tasks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ pub extern "C" fn sys_set_priority(id: Tid, prio: u8) {
252252
.set_priority(TaskId::from(id), Priority::from(prio))
253253
.expect("Unable to set priority");
254254
} else {
255-
panic!("Invalid priority {}", prio);
255+
panic!("Invalid priority {prio}");
256256
}
257257
}
258258

@@ -263,6 +263,6 @@ pub extern "C" fn sys_set_current_task_priority(prio: u8) {
263263
if prio > 0 {
264264
core_scheduler().set_current_task_priority(Priority::from(prio));
265265
} else {
266-
panic!("Invalid priority {}", prio);
266+
panic!("Invalid priority {prio}");
267267
}
268268
}

0 commit comments

Comments
 (0)