Skip to content

Commit a7639c2

Browse files
committed
Fix tests in 1.36
1 parent 369ec2f commit a7639c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/digital.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub mod blocking {
125125
/// use core::time::Duration;
126126
/// use embedded_hal::digital::blocking::{IoPin, InputPin, OutputPin};
127127
///
128-
/// pub fn ping_and_read<TInputPin, TOutputPin, TError>(
128+
/// pub fn ping_and_read<TInputPin, TOutputPin, TError: core::fmt::Debug>(
129129
/// mut pin: TOutputPin, delay_fn: &dyn Fn(Duration) -> ()) -> Result<bool, TError>
130130
/// where
131131
/// TInputPin : InputPin<Error = TError> + IoPin<TInputPin, TOutputPin, Error = TError>,

src/i2c.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
//! i2c: I2C,
6464
//! }
6565
//!
66-
//! impl<I2C, E> TemperatureSensorDriver<I2C>
66+
//! impl<I2C, E: core::fmt::Debug> TemperatureSensorDriver<I2C>
6767
//! where
6868
//! I2C: WriteRead<Error = E>,
6969
//! {
@@ -86,7 +86,7 @@
8686
//! i2c: I2C,
8787
//! }
8888
//!
89-
//! impl<I2C, E> TemperatureSensorDriver<I2C>
89+
//! impl<I2C, E: core::fmt::Debug> TemperatureSensorDriver<I2C>
9090
//! where
9191
//! I2C: WriteRead<TenBitAddress, Error = E>,
9292
//! {

0 commit comments

Comments
 (0)