Skip to content

Commit 2abefaa

Browse files
committed
clean riscv-peripheral tests
1 parent 43dc47f commit 2abefaa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

riscv-pac/macros/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ impl PacNumberEnum {
3939
},
4040
_ => panic!("Variant must have a discriminant"),
4141
};
42-
// check for duplicate discriminant values
4342
var_map.insert(value, ident);
4443
numbers.push(value);
4544
}

riscv-peripheral/src/plic.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ pub(crate) mod test {
158158
I4 = 4,
159159
}
160160

161+
unsafe impl ExternalInterruptNumber for Interrupt {}
162+
161163
#[pac_enum(unsafe PriorityNumber)]
162164
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
163165
#[repr(u8)]

0 commit comments

Comments
 (0)