Skip to content

Commit

Permalink
Mark State and Info as #[non_exhaustive]
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Nov 6, 2024
1 parent 46f087e commit b508aea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esp-hal/src/i2c/master/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ fn configure_clock(
}

/// Peripheral data describing a particular I2C instance.
#[non_exhaustive]
pub struct Info {
/// Pointer to the register block for this I2C instance.
///
Expand Down Expand Up @@ -1301,6 +1302,7 @@ impl PartialEq for Info {
unsafe impl Sync for Info {}

/// Peripheral state for an I2C instance.
#[non_exhaustive]
pub struct State {
/// Waker for the asynchronous operations.
pub waker: AtomicWaker,
Expand Down

0 comments on commit b508aea

Please sign in to comment.