Skip to content

Commit 1b05555

Browse files
committed
Fix exhaustiveness match in Interrupt nr
1 parent 5c88ee9 commit 1b05555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate/interrupt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub fn render(
148148

149149
let self_token = quote!(self);
150150
let (enum_repr, nr_expr) = if variants.is_empty() {
151-
(quote!(), quote!(match #self_token {}))
151+
(quote!(), quote!(match *#self_token {}))
152152
} else {
153153
(quote!(#[repr(u8)]), quote!(*#self_token as u8))
154154
};

0 commit comments

Comments
 (0)