Skip to content

Commit f8c1d08

Browse files
committed
Use mutable array reference directly since AsMut<[Operation]> imposes limits on generic types
1 parent b22c88c commit f8c1d08

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/blocking/i2c.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,5 @@ pub trait Transactional {
157157
/// - `SAD+R/W` = slave address followed by bit 1 to indicate reading or 0 to indicate writing
158158
/// - `SR` = repeated start condition
159159
/// - `SP` = stop condition
160-
fn try_exec<'a, O>(&mut self, address: u8, operations: O) -> Result<(), Self::Error>
161-
where
162-
O: AsMut<[Operation<'a>]>;
160+
fn try_exec<'a>(&mut self, address: u8, operations: &mut [Operation<'a>]) -> Result<(), Self::Error>;
163161
}

0 commit comments

Comments
 (0)