Skip to content

Commit 1e04df6

Browse files
committed
remove hidden variant
it was there to maybe support adding DebugMonitor in the future but it has already been added
1 parent 0eff0b2 commit 1e04df6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/peripheral/scb.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -704,10 +704,6 @@ pub enum SystemHandler {
704704

705705
/// System Tick interrupt
706706
SysTick,
707-
708-
// Make this enum extensible
709-
#[doc(hidden)]
710-
__DO_NOT_MATCH_AGAINST_THIS_VARIANT__,
711707
}
712708

713709
impl SystemHandler {
@@ -726,7 +722,6 @@ impl SystemHandler {
726722
SystemHandler::DebugMonitor => 12,
727723
SystemHandler::PendSV => 14,
728724
SystemHandler::SysTick => 15,
729-
SystemHandler::__DO_NOT_MATCH_AGAINST_THIS_VARIANT__ => unreachable!(),
730725
}
731726
}
732727
}

0 commit comments

Comments
 (0)