Skip to content

Commit a022d8a

Browse files
committed
style: remove commas before trailing parens
1 parent 8c012c6 commit a022d8a

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

src/arch/aarch64/kernel/interrupts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ pub(crate) fn init() {
303303
let layout = PageLayout::from_size_align(gicd_size.try_into().unwrap(), 0x10000).unwrap();
304304
let page_range = KERNEL_FREE_LIST.lock().allocate(layout).unwrap();
305305
let gicd_address = VirtAddr::from(page_range.start());
306-
debug!("Mapping GIC Distributor interface to virtual address {gicd_address:p}",);
306+
debug!("Mapping GIC Distributor interface to virtual address {gicd_address:p}");
307307

308308
let mut flags = PageTableEntryFlags::empty();
309309
flags.device().writable().execute_disable();
@@ -317,7 +317,7 @@ pub(crate) fn init() {
317317
let layout = PageLayout::from_size_align(gicr_size.try_into().unwrap(), 0x10000).unwrap();
318318
let page_range = KERNEL_FREE_LIST.lock().allocate(layout).unwrap();
319319
let gicr_address = VirtAddr::from(page_range.start());
320-
debug!("Mapping generic interrupt controller to virtual address {gicr_address:p}",);
320+
debug!("Mapping generic interrupt controller to virtual address {gicr_address:p}");
321321
paging::map::<BasePageSize>(
322322
gicr_address,
323323
gicr_start,

src/arch/aarch64/kernel/processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ pub fn seed_entropy() -> Option<[u8; 32]> {
223223
/// The halt function stops the processor until the next interrupt arrives
224224
pub fn halt() {
225225
unsafe {
226-
asm!("wfi", options(nostack, nomem),);
226+
asm!("wfi", options(nostack, nomem));
227227
}
228228
}
229229

src/arch/aarch64/kernel/start.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ unsafe extern "C" fn pre_init(boot_info: Option<&'static RawBootInfo>, cpu_id: u
247247
);
248248

249249
// Memory barrier
250-
asm!("dsb sy", options(nostack),);
250+
asm!("dsb sy", options(nostack));
251251
}
252252

253253
if cpu_id == 0 {

src/arch/aarch64/kernel/systemtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub fn init() {
6969
let page_range = KERNEL_FREE_LIST.lock().allocate(layout).unwrap();
7070
let pl031_address = VirtAddr::from(page_range.start());
7171
PL031_ADDRESS.set(pl031_address).unwrap();
72-
debug!("Mapping RTC to virtual address {pl031_address:p}",);
72+
debug!("Mapping RTC to virtual address {pl031_address:p}");
7373

7474
let mut flags = PageTableEntryFlags::empty();
7575
flags.device().writable().execute_disable();

src/arch/aarch64/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ pub mod mm;
77
pub(crate) fn memory_barrier() {
88
use core::arch::asm;
99
unsafe {
10-
asm!("dmb ish", options(nostack, nomem, preserves_flags),);
10+
asm!("dmb ish", options(nostack, nomem, preserves_flags));
1111
}
1212
}

src/arch/x86_64/kernel/apic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ fn init_ioapic_address(phys_addr: PhysAddr) {
321321
let page_range = KERNEL_FREE_LIST.lock().allocate(layout).unwrap();
322322
let ioapic_address = VirtAddr::from(page_range.start());
323323
IOAPIC_ADDRESS.set(ioapic_address).unwrap();
324-
debug!("Mapping IOAPIC at {phys_addr:p} to virtual address {ioapic_address:p}",);
324+
debug!("Mapping IOAPIC at {phys_addr:p} to virtual address {ioapic_address:p}");
325325

326326
let mut flags = PageTableEntryFlags::empty();
327327
flags.device().writable().execute_disable();

src/arch/x86_64/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ pub(crate) fn swapgs(_stack_frame: &ExceptionStackFrame) {}
2929
pub(crate) fn memory_barrier() {
3030
use core::arch::asm;
3131
unsafe {
32-
asm!("mfence", options(nostack, nomem, preserves_flags),);
32+
asm!("mfence", options(nostack, nomem, preserves_flags));
3333
}
3434
}

src/drivers/net/gem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ pub fn init_device(
719719
// Get the supported Speed and Duplex
720720
// TODO - Next Page does not seem to be emulated by QEMU
721721

722-
//info!("PHY auto-negotiation completed:\n Speed: {}\nDuplex", ,);
722+
//info!("PHY auto-negotiation completed:\n Speed: {}\nDuplex");
723723
debug!("PHY auto-negotiation completed: Partner Ability {partner_ability:x}");
724724
}
725725
}

src/fs/uhyve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl Drop for UhyveFileHandleInner {
9191
uhyve_hypercall(Hypercall::FileClose(&mut close_params));
9292
if close_params.ret != 0 {
9393
let ret = close_params.ret; // circumvent packed field access
94-
panic!("Can't close fd {} - return value {ret}", self.0,);
94+
panic!("Can't close fd {} - return value {ret}", self.0);
9595
}
9696
}
9797
}

src/init_cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![cfg_attr(
2-
not(any(feature = "vsock", feature = "fuse", feature = "console",)),
2+
not(any(feature = "vsock", feature = "fuse", feature = "console")),
33
expect(dead_code)
44
)]
55

0 commit comments

Comments
 (0)