@@ -54,25 +54,25 @@ impl Exception {
54
54
#[ repr( C ) ]
55
55
pub struct Handlers {
56
56
/// Non-maskable interrupt
57
- pub nmi : unsafe extern "C" fn ( & Nmi ) ,
57
+ pub nmi : unsafe extern "C" fn ( Nmi ) ,
58
58
/// All class of fault
59
- pub hard_fault : unsafe extern "C" fn ( & HardFault ) ,
59
+ pub hard_fault : unsafe extern "C" fn ( HardFault ) ,
60
60
/// Memory management
61
- pub mem_manage : unsafe extern "C" fn ( & MemManage ) ,
61
+ pub mem_manage : unsafe extern "C" fn ( MemManage ) ,
62
62
/// Pre-fetch fault, memory access fault
63
- pub bus_fault : unsafe extern "C" fn ( & BusFault ) ,
63
+ pub bus_fault : unsafe extern "C" fn ( BusFault ) ,
64
64
/// Undefined instruction or illegal state
65
- pub usage_fault : unsafe extern "C" fn ( & UsageFault ) ,
65
+ pub usage_fault : unsafe extern "C" fn ( UsageFault ) ,
66
66
/// Reserved spots in the vector table
67
67
pub _reserved0 : [ Reserved ; 4 ] ,
68
68
/// System service call via SWI instruction
69
- pub svcall : unsafe extern "C" fn ( & Svcall ) ,
69
+ pub svcall : unsafe extern "C" fn ( Svcall ) ,
70
70
/// Reserved spots in the vector table
71
71
pub _reserved1 : [ Reserved ; 2 ] ,
72
72
/// Pendable request for system service
73
- pub pendsv : unsafe extern "C" fn ( & Pendsv ) ,
73
+ pub pendsv : unsafe extern "C" fn ( Pendsv ) ,
74
74
/// System tick timer
75
- pub sys_tick : unsafe extern "C" fn ( & SysTick ) ,
75
+ pub sys_tick : unsafe extern "C" fn ( SysTick ) ,
76
76
}
77
77
78
78
/// Non-maskable interrupt
@@ -150,7 +150,7 @@ pub const DEFAULT_HANDLERS: Handlers = Handlers {
150
150
// This needs asm!, #[naked] and unreachable() to avoid modifying the stack
151
151
// pointer (MSP), that way it points to the stacked registers
152
152
#[ naked]
153
- pub unsafe extern "C" fn default_handler < T > ( _token : & T ) {
153
+ pub unsafe extern "C" fn default_handler < T > ( _token : T ) {
154
154
// This is the actual exception handler. `_sf` is a pointer to the previous
155
155
// stack frame
156
156
#[ cfg( target_arch = "arm" ) ]
0 commit comments