Skip to content

Update for new pac #1474

Update for new pac

Update for new pac #1474

Triggered via pull request December 6, 2024 14:33
Status Failure
Total duration 1m 20s
Artifacts

clippy.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
unexpected `cfg` condition value: `stm32h757cm7`: src/lib.rs#L114
error: unexpected `cfg` condition value: `stm32h757cm7` --> src/lib.rs:114:7 | 114 | #[cfg(feature = "stm32h757cm7")] | ^^^^^^^^^^-------------- | | | help: there is a expected value with a similar name: `"stm32h747cm7"` | = note: expected values for `feature` are: `can`, `chrono`, `cm4`, `cm7`, `crc`, `default`, `defmt`, `device-selected`, `dsi`, `embedded-display-controller`, `embedded-sdmmc`, `ethernet`, `example-ldo`, `example-smps`, `fdcan`, `fmc`, `gpio-h72`, `gpio-h747`, `gpio-h7a2`, `log`, `log-itm`, `log-rtt`, `log-semihost`, `ltdc`, `rand`, `rand_core`, `revision_v`, `rm0399`, `rm0433`, `rm0455`, `rm0468`, `rt`, `rtc`, `sdio-host`, and `sdmmc` and 20 more = help: consider adding `stm32h757cm7` as a feature in `Cargo.toml` = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration = note: `-D unexpected-cfgs` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unexpected_cfgs)]`
trait `PulseDensityPinD2` is never used: src/sai/pdm.rs#L44
error: trait `PulseDensityPinD2` is never used --> src/sai/pdm.rs:44:11 | 44 | pub trait PulseDensityPinD2<SAI> {} | ^^^^^^^^^^^^^^^^^ | = note: `-D dead-code` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(dead_code)]`
trait `PulseDensityPinD3` is never used: src/sai/pdm.rs#L45
error: trait `PulseDensityPinD3` is never used --> src/sai/pdm.rs:45:11 | 45 | pub trait PulseDensityPinD3<SAI> {} | ^^^^^^^^^^^^^^^^^
trait `PulseDensityPinD4` is never used: src/sai/pdm.rs#L46
error: trait `PulseDensityPinD4` is never used --> src/sai/pdm.rs:46:11 | 46 | pub trait PulseDensityPinD4<SAI> {} | ^^^^^^^^^^^^^^^^^
trait `PulseDensityPinCK2` is never used: src/sai/pdm.rs#L48
error: trait `PulseDensityPinCK2` is never used --> src/sai/pdm.rs:48:11 | 48 | pub trait PulseDensityPinCK2<SAI> {} | ^^^^^^^^^^^^^^^^^^
trait `PulseDensityPinCK3` is never used: src/sai/pdm.rs#L49
error: trait `PulseDensityPinCK3` is never used --> src/sai/pdm.rs:49:11 | 49 | pub trait PulseDensityPinCK3<SAI> {} | ^^^^^^^^^^^^^^^^^^
trait `PulseDensityPinCK4` is never used: src/sai/pdm.rs#L50
error: trait `PulseDensityPinCK4` is never used --> src/sai/pdm.rs:50:11 | 50 | pub trait PulseDensityPinCK4<SAI> {} | ^^^^^^^^^^^^^^^^^^
struct `Instant` is never constructed: src/time.rs#L82
error: struct `Instant` is never constructed --> src/time.rs:82:12 | 82 | pub struct Instant { | ^^^^^^^
this expression creates a reference which is immediately dereferenced by the compiler: src/dma/dma.rs#L345
error: this expression creates a reference which is immediately dereferenced by the compiler --> src/dma/dma.rs:345:9 | 345 | &(*I::ptr()).st(S as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*I::ptr()).st(S as usize)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `-D clippy::needless-borrow` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
this expression creates a reference which is immediately dereferenced by the compiler: src/dma/dma.rs#L349
error: this expression creates a reference which is immediately dereferenced by the compiler --> src/dma/dma.rs:349:9 | 349 | &dmamux.ccr(S as usize + I::DMA_MUX_STREAM_OFFSET) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `dmamux.ccr(S as usize + I::DMA_MUX_STREAM_OFFSET)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
clippy_check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636