Skip to content

Commit cc4d280

Browse files
committed
Use Operation slice type for consistency
1 parent 621ada4 commit cc4d280

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/blocking/i2c.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ 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>(
161+
&mut self,
162+
address: u8,
163+
operations: &mut [Operation<'a>],
164+
) -> Result<(), Self::Error>;
163165
}

0 commit comments

Comments
 (0)