Skip to content

support both e-hal 0.2 & 1.0 #34

support both e-hal 0.2 & 1.0

support both e-hal 0.2 & 1.0 #34

Triggered via pull request October 5, 2024 03:57
@burrbullburrbull
synchronize #416
Status Success
Total duration 13s
Artifacts

changelog.yml

on: pull_request_target
Changelog check
4s
Changelog check
Fit to window
Zoom out
Zoom in

Annotations

13 warnings
Changelog check
The following actions uses node12 which is deprecated and will be forced to run on node16: Zomzog/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Changelog check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, Zomzog/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
usage of a legacy numeric constant: src/timer/pwm_input.rs#L165
warning: usage of a legacy numeric constant --> src/timer/pwm_input.rs:165:45 | 165 | let presc = clock / freq.saturating_mul(core::u16::MAX as u32 + 1); | ^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants help: use the associated constant instead | 165 | let presc = clock / freq.saturating_mul(u16::MAX as u32 + 1); | ~~~~~~~~
usage of a legacy numeric constant: src/timer/pwm_input.rs#L163
warning: usage of a legacy numeric constant --> src/timer/pwm_input.rs:163:33 | 163 | return (core::u16::MAX, core::u16::MAX); | ^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants help: use the associated constant instead | 163 | return (core::u16::MAX, u16::MAX); | ~~~~~~~~
usage of a legacy numeric constant: src/timer/pwm_input.rs#L163
warning: usage of a legacy numeric constant --> src/timer/pwm_input.rs:163:17 | 163 | return (core::u16::MAX, core::u16::MAX); | ^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants help: use the associated constant instead | 163 | return (u16::MAX, core::u16::MAX); | ~~~~~~~~
importing legacy numeric constants: src/qei.rs#L7
warning: importing legacy numeric constants --> src/qei.rs:7:5 | 7 | use core::u16; | ^^^^^^^^^ | = help: remove this import = note: then `u16::<CONST>` will resolve to the respective associated constant = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
doc list item without indentation: src/gpio.rs#L38
warning: doc list item without indentation --> src/gpio.rs:38:5 | 38 | //! used if the [JTAG peripheral has been turned off](#accessing-pa15-pb3-and-pb14). | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation help: indent this line | 38 | //! used if the [JTAG peripheral has been turned off](#accessing-pa15-pb3-and-pb14). | ++
doc list item without indentation: src/gpio.rs#L36
warning: doc list item without indentation --> src/gpio.rs:36:5 | 36 | //! mode. Can be used as an input in the `open` configuration | ^^^^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation help: indent this line | 36 | //! mode. Can be used as an input in the `open` configuration | ++
doc list item without indentation: src/gpio.rs#L31
warning: doc list item without indentation --> src/gpio.rs:31:5 | 31 | //! is connected | ^^^^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation help: indent this line | 31 | //! is connected | ++
doc list item without indentation: src/gpio.rs#L29
warning: doc list item without indentation --> src/gpio.rs:29:5 | 29 | //! is connected | ^^^^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation = note: `#[warn(clippy::doc_lazy_continuation)]` on by default help: indent this line | 29 | //! is connected | ++
usage of a legacy numeric method: src/adc.rs#L249
warning: usage of a legacy numeric method --> src/adc.rs:249:45 | 249 | Align::Left => u16::max_value(), | ^^^^^^^^^^^ ... 545 | / adc_hal! { 546 | | pac::ADC2: (adc2), 547 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `adc_hal` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 249 | Align::Left => u16::MAX, | ~~~
usage of a legacy numeric method: src/adc.rs#L249
warning: usage of a legacy numeric method --> src/adc.rs:249:45 | 249 | Align::Left => u16::max_value(), | ^^^^^^^^^^^ ... 540 | / adc_hal! { 541 | | pac::ADC1: (adc1), 542 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: `#[warn(clippy::legacy_numeric_constants)]` on by default = note: this warning originates in the macro `adc_hal` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 249 | Align::Left => u16::MAX, | ~~~
unexpected `cfg` condition value: `stm32f102`: src/rcc/enable.rs#L187
warning: unexpected `cfg` condition value: `stm32f102` --> src/rcc/enable.rs:187:11 | 187 | #[cfg(any(feature = "stm32f102", feature = "stm32f103"))] | ^^^^^^^^^^----------- | | | help: there is a expected value with a similar name: `"stm32f103"` | = note: expected values for `feature` are: `connectivity`, `device-selected`, `doc`, `has-can`, `has-dac`, `high`, `medium`, `rt`, `rtic`, `rtic-monotonic`, `stm32-usbd`, `stm32f100`, `stm32f101`, `stm32f103`, `stm32f105`, `stm32f107`, and `xl` = help: consider adding `stm32f102` 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: `#[warn(unexpected_cfgs)]` on by default