Skip to content

Commit

Permalink
itm: make ITMConfiguration non-exhaustive
Browse files Browse the repository at this point in the history
At least one more error enum will be added in the future. See rust-embedded#393.
  • Loading branch information
tmplt committed Jan 15, 2022
1 parent c80da84 commit e18b52d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/peripheral/itm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ pub struct ITMConfiguration {

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

0 comments on commit e18b52d

Please sign in to comment.