Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmunns committed Jan 21, 2025
1 parent 6982e47 commit df08804
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions embedded-hal-bus/src/i2c/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ impl<'a, T> MutexDevice<'a, T> {
}
}

impl<'a, T> ErrorType for MutexDevice<'a, T>
impl<T> ErrorType for MutexDevice<'_, T>
where
T: I2c,
{
type Error = T::Error;
}

impl<'a, T> I2c for MutexDevice<'a, T>
impl<T> I2c for MutexDevice<'_, T>
where
T: I2c,
{
Expand Down
4 changes: 2 additions & 2 deletions embedded-hal-bus/src/spi/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ impl<'a, BUS, CS> MutexDevice<'a, BUS, CS, super::NoDelay> {
}
}

impl<'a, BUS, CS, D> ErrorType for MutexDevice<'a, BUS, CS, D>
impl<BUS, CS, D> ErrorType for MutexDevice<'_, BUS, CS, D>
where
BUS: ErrorType,
CS: OutputPin,
{
type Error = DeviceError<BUS::Error, CS::Error>;
}

impl<'a, Word: Copy + 'static, BUS, CS, D> SpiDevice<Word> for MutexDevice<'a, BUS, CS, D>
impl<Word: Copy + 'static, BUS, CS, D> SpiDevice<Word> for MutexDevice<'_, BUS, CS, D>
where
BUS: SpiBus<Word>,
CS: OutputPin,
Expand Down

0 comments on commit df08804

Please sign in to comment.