Skip to content

Continuous integration #665

Continuous integration

Continuous integration #665

GitHub Actions / clippy succeeded Jul 16, 2024 in 0s

clippy

6 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 6
Note 0
Help 0

Versions

  • rustc 1.79.0 (129f3b996 2024-06-10)
  • cargo 1.79.0 (ffa9cf99a 2024-06-03)
  • clippy 0.1.79 (129f3b9 2024-06-10)

Annotations

Check warning on line 165 in src/timer/pwm_input.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric constant

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);
    |                                             ~~~~~~~~

Check warning on line 163 in src/timer/pwm_input.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric constant

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);
    |                                 ~~~~~~~~

Check warning on line 163 in src/timer/pwm_input.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric constant

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);
    |                 ~~~~~~~~

Check warning on line 7 in src/qei.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

importing legacy numeric constants

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

Check warning on line 249 in src/adc.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

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,
    |                                             ~~~

Check warning on line 249 in src/adc.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

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,
    |                                             ~~~