Skip to content

Commit efd3d93

Browse files
author
Brandon Matthews
committed
Remove debug assert from Peripherals::steal
1 parent 77ce4d5 commit efd3d93

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/generate/device.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ pub fn render(d: &Device, target: &Target, nightly: bool, device_x: &mut String)
188188

189189
/// Unchecked version of `Peripherals::take`
190190
pub unsafe fn steal() -> Self {
191-
debug_assert!(!DEVICE_PERIPHERALS);
192-
193191
DEVICE_PERIPHERALS = true;
194192

195193
Peripherals {

0 commit comments

Comments
 (0)