Skip to content

Commit 7512dbc

Browse files
committed
Update to new function prototype
1 parent 45d4873 commit 7512dbc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,11 @@ impl hal::blocking::i2c::WriteRead for I2cdev {
211211
impl hal::blocking::i2c::Transactional for I2cdev {
212212
type Error = i2cdev::linux::LinuxI2CError;
213213

214-
fn try_exec<'a, O>(&mut self, address: u8, mut operations: O) -> Result<(), Self::Error>
215-
where
216-
O: AsMut<[I2cOperation<'a>]>,
217-
{
214+
fn try_exec<'a>(
215+
&mut self,
216+
address: u8,
217+
operations: &mut [I2cOperation<'a>],
218+
) -> Result<(), Self::Error> {
218219
// Map operations from generic to linux objects
219220
let mut messages: Vec<_> = operations
220221
.as_mut()

0 commit comments

Comments
 (0)