From b508aeab258261addbfd2d811a6c270a16337a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Wed, 6 Nov 2024 19:53:37 +0100 Subject: [PATCH] Mark State and Info as #[non_exhaustive] --- esp-hal/src/i2c/master/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esp-hal/src/i2c/master/mod.rs b/esp-hal/src/i2c/master/mod.rs index c174b091ca..72e0f9ca36 100644 --- a/esp-hal/src/i2c/master/mod.rs +++ b/esp-hal/src/i2c/master/mod.rs @@ -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. /// @@ -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,