diff options
author | 2020-01-16 22:17:37 +0100 | |
---|---|---|
committer | 2020-01-16 22:17:37 +0100 | |
commit | 6e63b1e9b94bc08b8cd84383c51b93f6170eb594 (patch) | |
tree | 983fc4d8f5be50b813e9ab719ce2a95507eb5022 /src | |
parent | 34f47ddba972e5f697392d30a6c302e93bb0502c (diff) | |
download | cortex-m-6e63b1e9b94bc08b8cd84383c51b93f6170eb594.tar.gz cortex-m-6e63b1e9b94bc08b8cd84383c51b93f6170eb594.tar.zst cortex-m-6e63b1e9b94bc08b8cd84383c51b93f6170eb594.zip |
Make `Peripherals` `#[non_exhaustive]`
Diffstat (limited to 'src')
-rw-r--r-- | src/peripheral/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/peripheral/mod.rs b/src/peripheral/mod.rs index 5d7e473..c9c8ad6 100644 --- a/src/peripheral/mod.rs +++ b/src/peripheral/mod.rs @@ -89,6 +89,7 @@ mod test; /// Core peripherals #[allow(non_snake_case)] +#[non_exhaustive] pub struct Peripherals { /// Cache and branch predictor maintenance operations (not present on Cortex-M0 variants) pub CBP: CBP, |