Skip to content

Commit e18b52d

Browse files
committed
itm: make ITMConfiguration non-exhaustive
At least one more error enum will be added in the future. See #393.
1 parent c80da84 commit e18b52d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/peripheral/itm.rs

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ pub struct ITMConfiguration {
188188

189189
/// Possible errors on [ITM::configure].
190190
#[derive(Debug, Eq, PartialEq, Copy, Clone)]
191+
#[non_exhaustive]
191192
pub enum ITMConfigurationError {
192193
/// Global timestamp generation is not supported on this target.
193194
/// Request [`GlobalTimestampOptions::Disabled`] instead.

0 commit comments

Comments
 (0)