Skip to content

Commit df08804

Browse files
committed
Fix clippy errors
1 parent 6982e47 commit df08804

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

embedded-hal-bus/src/i2c/mutex.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ impl<'a, T> MutexDevice<'a, T> {
1919
}
2020
}
2121

22-
impl<'a, T> ErrorType for MutexDevice<'a, T>
22+
impl<T> ErrorType for MutexDevice<'_, T>
2323
where
2424
T: I2c,
2525
{
2626
type Error = T::Error;
2727
}
2828

29-
impl<'a, T> I2c for MutexDevice<'a, T>
29+
impl<T> I2c for MutexDevice<'_, T>
3030
where
3131
T: I2c,
3232
{

embedded-hal-bus/src/spi/mutex.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ impl<'a, BUS, CS> MutexDevice<'a, BUS, CS, super::NoDelay> {
7070
}
7171
}
7272

73-
impl<'a, BUS, CS, D> ErrorType for MutexDevice<'a, BUS, CS, D>
73+
impl<BUS, CS, D> ErrorType for MutexDevice<'_, BUS, CS, D>
7474
where
7575
BUS: ErrorType,
7676
CS: OutputPin,
7777
{
7878
type Error = DeviceError<BUS::Error, CS::Error>;
7979
}
8080

81-
impl<'a, Word: Copy + 'static, BUS, CS, D> SpiDevice<Word> for MutexDevice<'a, BUS, CS, D>
81+
impl<Word: Copy + 'static, BUS, CS, D> SpiDevice<Word> for MutexDevice<'_, BUS, CS, D>
8282
where
8383
BUS: SpiBus<Word>,
8484
CS: OutputPin,

0 commit comments

Comments
 (0)