Skip to content

Commit fb6c239

Browse files
committed
Reformat code
1 parent 7e9c8d7 commit fb6c239

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/plic.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@ pub trait PlicExt {
1717
/// Is this M-Mode interrupt enabled on given hart?
1818
fn is_enabled(hart_id: usize, interrupt: Self::Interrupt) -> bool;
1919
/// Enable an interrupt for a given hart
20-
///
20+
///
2121
/// # Safety
22-
///
22+
///
2323
/// May effect normal interrupt handling procedure
2424
unsafe fn unmask(hart_id: usize, interrupt: Self::Interrupt);
2525
/// Disable an interrupt for a given hart
2626
fn mask(hart_id: usize, interrupt: Self::Interrupt);
2727
/// Get global priority for one interrupt
2828
fn get_priority(interrupt: Self::Interrupt) -> Priority;
2929
/// Globally set priority for one interrupt
30-
///
30+
///
3131
/// # Safety
32-
///
32+
///
3333
/// May effect normal interrupt handling procedure
3434
unsafe fn set_priority(interrupt: Self::Interrupt, prio: Priority);
3535
/// Get priority threshold for a given hart
3636
fn get_threshold(hart_id: usize) -> Priority;
3737
/// Set the priority threshold for a given hart
38-
///
38+
///
3939
/// # Safety
40-
///
40+
///
4141
/// May effect normal interrupt handling procedure
4242
unsafe fn set_threshold(hart_id: usize, threshold: Priority);
4343
/// Mark that given hart have claimed to handle this interrupt

src/serial.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ impl<UART> Serial<UART> {
3434
Tx { uart: self.uart },
3535
Rx {
3636
// clippy allow: inner marker variable only indicates ownership, does not include actual data
37-
uart: unsafe { #[allow(clippy::uninit_assumed_init)] mem::MaybeUninit::uninit().assume_init() },
37+
uart: unsafe {
38+
#[allow(clippy::uninit_assumed_init)]
39+
mem::MaybeUninit::uninit().assume_init()
40+
},
3841
},
3942
)
4043
}

0 commit comments

Comments
 (0)