aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Matti Virkkunen <mvirkkunen@gmail.com> 2019-06-13 16:01:25 +0300
committerGravatar Matti Virkkunen <mvirkkunen@gmail.com> 2019-06-13 16:01:25 +0300
commitc125b2e3f1b106ec6d838c0ac640802e74744c9d (patch)
tree55e3a3aa4b6c40bea69d1d89d8c43a4007419bb6 /src
parentddebec2bd0544a0a6c377059390a454a8943e0a8 (diff)
downloadcortex-m-c125b2e3f1b106ec6d838c0ac640802e74744c9d.tar.gz
cortex-m-c125b2e3f1b106ec6d838c0ac640802e74744c9d.tar.zst
cortex-m-c125b2e3f1b106ec6d838c0ac640802e74744c9d.zip
Remove debug_assert from Peripherals::steal
Diffstat (limited to 'src')
-rw-r--r--src/peripheral/mod.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/peripheral/mod.rs b/src/peripheral/mod.rs
index 6aacb73..8d2bd3f 100644
--- a/src/peripheral/mod.rs
+++ b/src/peripheral/mod.rs
@@ -167,8 +167,6 @@ impl Peripherals {
/// Unchecked version of `Peripherals::take`
pub unsafe fn steal() -> Self {
- debug_assert!(!CORE_PERIPHERALS);
-
CORE_PERIPHERALS = true;
Peripherals {