mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-30 05:40:39 +00:00
Mark State/Info as #[non_exhaustive] (#2471)
This commit is contained in:
parent
255f5e7c73
commit
feac6f17c3
@ -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.
|
||||
///
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user