Skip to content

Commit 86a3ebf

Browse files
committed
Resolve lints issue
1 parent d9f2ee1 commit 86a3ebf

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

riscv-rt/macros/src/lib.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,15 +549,21 @@ _continue_interrupt_trap:
549549
}
550550

551551
#[proc_macro_attribute]
552-
/// Attribute to declare an interrupt handler. The function must have the signature `[unsafe] fn() [-> !]`.
553-
/// If the `v-trap` feature is enabled, this macro generates the interrupt trap handler in assembly for RISCV-32 targets.
552+
/// Attribute to declare an interrupt handler.
553+
///
554+
/// The function must have the signature `[unsafe] fn() [-> !]`.
555+
/// If the `v-trap` feature is enabled, this macro generates the
556+
/// interrupt trap handler in assembly for RISCV-32 targets.
554557
pub fn interrupt_riscv32(args: TokenStream, input: TokenStream) -> TokenStream {
555558
interrupt(args, input, RiscvArch::Rv32)
556559
}
557560

558561
#[proc_macro_attribute]
559-
/// Attribute to declare an interrupt handler. The function must have the signature `[unsafe] fn() [-> !]`.
560-
/// If the `v-trap` feature is enabled, this macro generates the interrupt trap handler in assembly for RISCV-32 targets.
562+
/// Attribute to declare an interrupt handler.
563+
///
564+
/// The function must have the signature `[unsafe] fn() [-> !]`.
565+
/// If the `v-trap` feature is enabled, this macro generates the
566+
/// interrupt trap handler in assembly for RISCV-64 targets.
561567
pub fn interrupt_riscv64(args: TokenStream, input: TokenStream) -> TokenStream {
562568
interrupt(args, input, RiscvArch::Rv64)
563569
}

0 commit comments

Comments
 (0)