diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-10-06 22:56:31 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-10-06 23:19:53 +0200 |
| commit | 8730a013c395cf0bf4c2fa8eeb7f138288103039 (patch) | |
| tree | 39eca5fbc4570bd0129c9a291f134de5dab98820 /embassy-embedded-hal/src/shared_bus/blocking/i2c.rs | |
| parent | abc8e450f936567ad42cb34b5d2a7941b206aa5d (diff) | |
Rustfmt for edition 2024.
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus/blocking/i2c.rs')
| -rw-r--r-- | embassy-embedded-hal/src/shared_bus/blocking/i2c.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/blocking/i2c.rs b/embassy-embedded-hal/src/shared_bus/blocking/i2c.rs index dc634a209..49b50f8c1 100644 --- a/embassy-embedded-hal/src/shared_bus/blocking/i2c.rs +++ b/embassy-embedded-hal/src/shared_bus/blocking/i2c.rs | |||
| @@ -17,12 +17,12 @@ | |||
| 17 | 17 | ||
| 18 | use core::cell::RefCell; | 18 | use core::cell::RefCell; |
| 19 | 19 | ||
| 20 | use embassy_sync::blocking_mutex::raw::RawMutex; | ||
| 21 | use embassy_sync::blocking_mutex::Mutex; | 20 | use embassy_sync::blocking_mutex::Mutex; |
| 21 | use embassy_sync::blocking_mutex::raw::RawMutex; | ||
| 22 | use embedded_hal_1::i2c::{ErrorType, I2c, Operation}; | 22 | use embedded_hal_1::i2c::{ErrorType, I2c, Operation}; |
| 23 | 23 | ||
| 24 | use crate::shared_bus::I2cDeviceError; | ||
| 25 | use crate::SetConfig; | 24 | use crate::SetConfig; |
| 25 | use crate::shared_bus::I2cDeviceError; | ||
| 26 | 26 | ||
| 27 | /// I2C device on a shared bus. | 27 | /// I2C device on a shared bus. |
| 28 | pub struct I2cDevice<'a, M: RawMutex, BUS> { | 28 | pub struct I2cDevice<'a, M: RawMutex, BUS> { |
