Skip to content

Commit c125b2e

Browse files
committed
Remove debug_assert from Peripherals::steal
1 parent ddebec2 commit c125b2e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/peripheral/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ impl Peripherals {
167167

168168
/// Unchecked version of `Peripherals::take`
169169
pub unsafe fn steal() -> Self {
170-
debug_assert!(!CORE_PERIPHERALS);
171-
172170
CORE_PERIPHERALS = true;
173171

174172
Peripherals {

0 commit comments

Comments
 (0)