From 6f7a48efcd865043b110c174b3b93b26b7b67410 Mon Sep 17 00:00:00 2001 From: Preston Peranich Date: Thu, 31 Jul 2025 17:53:39 -0400 Subject: [PATCH] fix: remove static lifetime requirements from i2c shared bus. --- embassy-embedded-hal/src/shared_bus/asynch/i2c.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/embassy-embedded-hal/src/shared_bus/asynch/i2c.rs b/embassy-embedded-hal/src/shared_bus/asynch/i2c.rs index 71ce09def..6de685ee1 100644 --- a/embassy-embedded-hal/src/shared_bus/asynch/i2c.rs +++ b/embassy-embedded-hal/src/shared_bus/asynch/i2c.rs @@ -50,8 +50,8 @@ where impl i2c::I2c for I2cDevice<'_, M, BUS> where - M: RawMutex + 'static, - BUS: i2c::I2c + 'static, + M: RawMutex, + BUS: i2c::I2c, { async fn read(&mut self, address: u8, read: &mut [u8]) -> Result<(), I2cDeviceError> { let mut bus = self.bus.lock().await; @@ -124,8 +124,8 @@ where impl i2c::I2c for I2cDeviceWithConfig<'_, M, BUS> where - M: RawMutex + 'static, - BUS: i2c::I2c + SetConfig + 'static, + M: RawMutex, + BUS: i2c::I2c + SetConfig, { async fn read(&mut self, address: u8, buffer: &mut [u8]) -> Result<(), I2cDeviceError> { let mut bus = self.bus.lock().await;