Skip to content

Code formatting check #827

Code formatting check

Code formatting check #827

Triggered via merge group July 16, 2024 13:38
Status Success
Total duration 11s
Artifacts

rustfmt.yml

on: merge_group
Rustfmt
4s
Rustfmt
Fit to window
Zoom out
Zoom in

Annotations

9 warnings
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Rustfmt
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Rustfmt
`/home/runner/work/stm32f1xx-hal/stm32f1xx-hal/.cargo/config` is deprecated in favor of `config.toml`
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
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, | ~~~