Skip to content

Commit 6e63b1e

Browse files
Make Peripherals #[non_exhaustive]
1 parent 34f47dd commit 6e63b1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/peripheral/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ mod test;
8989

9090
/// Core peripherals
9191
#[allow(non_snake_case)]
92+
#[non_exhaustive]
9293
pub struct Peripherals {
9394
/// Cache and branch predictor maintenance operations (not present on Cortex-M0 variants)
9495
pub CBP: CBP,

0 commit comments

Comments
 (0)