Skip to content

Commit 5937709

Browse files
committed
Make Error non-exhaustive
1 parent dfb8522 commit 5937709

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cortex-m-pac/src/result.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ pub type Result<T> = core::result::Result<T, Error>;
55

66
/// Represents error variants for the library.
77
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
8+
#[non_exhaustive]
89
pub enum Error {
910
/// Attempted out-of-bounds access.
1011
IndexOutOfBounds {

0 commit comments

Comments
 (0)