Skip to content

Commit

Permalink
Update to new function prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Jun 18, 2020
1 parent 45d4873 commit 7512dbc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,11 @@ impl hal::blocking::i2c::WriteRead for I2cdev {
impl hal::blocking::i2c::Transactional for I2cdev {
type Error = i2cdev::linux::LinuxI2CError;

fn try_exec<'a, O>(&mut self, address: u8, mut operations: O) -> Result<(), Self::Error>
where
O: AsMut<[I2cOperation<'a>]>,
{
fn try_exec<'a>(
&mut self,
address: u8,
operations: &mut [I2cOperation<'a>],
) -> Result<(), Self::Error> {
// Map operations from generic to linux objects
let mut messages: Vec<_> = operations
.as_mut()
Expand Down

0 comments on commit 7512dbc

Please sign in to comment.