Bump lm75 from 0.2.0 to 1.0.0 #474
GitHub Actions / clippy
failed
Feb 19, 2024 in 1s
clippy
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.76.0 (07dca489a 2024-02-04)
- cargo 1.76.0 (c84b36747 2024-01-18)
- clippy 0.1.76 (07dca48 2024-02-04)
Annotations
Check failure on line 456 in src/hardware/setup.rs
github-actions / clippy
the method `read_temperature` exists for struct `Lm75<I2c<I2C1>, Lm75>`, but its trait bounds were not satisfied
error[E0599]: the method `read_temperature` exists for struct `Lm75<I2c<I2C1>, Lm75>`, but its trait bounds were not satisfied
--> src/hardware/setup.rs:456:51
|
456 | log::info!("LM75 Temperature: {}°C", lm75.read_temperature().unwrap());
| ^^^^^^^^^^^^^^^^ method cannot be called on `Lm75<I2c<I2C1>, Lm75>` due to unsatisfied trait bounds
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stm32h7xx-hal-0.15.1/src/i2c.rs:84:1
|
84 | pub struct I2c<I2C> {
| -------------------
| |
| doesn't satisfy `<_ as ErrorType>::Error = _`
| doesn't satisfy `_: ErrorType`
| doesn't satisfy `_: I2c`
|
= note: the following trait bounds were not satisfied:
`<stm32h7xx_hal::i2c::I2c<stm32h7xx_hal::stm32::I2C1> as embedded_hal::i2c::ErrorType>::Error = _`
`stm32h7xx_hal::i2c::I2c<stm32h7xx_hal::stm32::I2C1>: embedded_hal::i2c::I2c`
`stm32h7xx_hal::i2c::I2c<stm32h7xx_hal::stm32::I2C1>: embedded_hal::i2c::ErrorType`
which is required by `stm32h7xx_hal::i2c::I2c<stm32h7xx_hal::stm32::I2C1>: embedded_hal::i2c::I2c`
Check failure on line 455 in src/hardware/setup.rs
github-actions / clippy
the trait bound `stm32h7xx_hal::i2c::I2c<stm32h7xx_hal::stm32::I2C1>: embedded_hal::i2c::I2c` is not satisfied
error[E0277]: the trait bound `stm32h7xx_hal::i2c::I2c<stm32h7xx_hal::stm32::I2C1>: embedded_hal::i2c::I2c` is not satisfied
--> src/hardware/setup.rs:455:40
|
455 | let mut lm75 = lm75::Lm75::new(i2c, lm75::Address::default());
| --------------- ^^^ the trait `embedded_hal::i2c::I2c` is not implemented for `stm32h7xx_hal::i2c::I2c<stm32h7xx_hal::stm32::I2C1>`
| |
| required by a bound introduced by this call
|
= help: the trait `embedded_hal::i2c::I2c<A>` is implemented for `&mut T`
note: required by a bound in `lm75::device_impl::<impl lm75::Lm75<I2C, lm75::ic::Lm75>>::new`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lm75-1.0.0/src/device_impl.rs:28:10
|
28 | I2C: i2c::I2c<Error = E>,
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `lm75::device_impl::<impl Lm75<I2C, Lm75>>::new`
...
31 | pub fn new<A: Into<Address>>(i2c: I2C, address: A) -> Self {
| --- required by a bound in this associated function
Loading