Mark State/Info as #[non_exhaustive] (#2471)

This commit is contained in:
Dániel Buga 2024-11-07 10:37:56 +01:00 committed by GitHub
parent 255f5e7c73
commit feac6f17c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -2165,6 +2165,7 @@ pub trait Instance:
pub trait QspiInstance: Instance {}
/// Peripheral data describing a particular SPI instance.
#[non_exhaustive]
pub struct Info {
/// Pointer to the register block for this SPI instance.
///

View File

@ -2174,6 +2174,7 @@ pub trait Instance: Peripheral<P = Self> + PeripheralMarker + Into<AnyUart> + 's
}
/// Peripheral data describing a particular UART instance.
#[non_exhaustive]
pub struct Info {
/// Pointer to the register block for this UART instance.
///
@ -2200,6 +2201,7 @@ pub struct Info {
}
/// Peripheral state for a UART instance.
#[non_exhaustive]
pub struct State {
/// Waker for the asynchronous RX operations.
pub rx_waker: AtomicWaker,