File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments