Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aml: Fix clippy warning related to legacy max_value() method
::max_value() should be replaced by ::MAX warning: usage of a legacy numeric method --> src/aml.rs:194:27 | 194 | if *self <= Byte::max_value().into() { | ^^^^^^^^^^^ | = 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 help: use the associated constant instead | 194 | if *self <= Byte::MAX.into() { | ~~~ warning: usage of a legacy numeric method --> src/aml.rs:207:27 | 207 | if *self <= Word::max_value().into() { | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants help: use the associated constant instead | 207 | if *self <= Word::MAX.into() { | ~~~ warning: usage of a legacy numeric method --> src/aml.rs:220:28 | 220 | if *self <= DWord::max_value().into() { | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants help: use the associated constant instead | 220 | if *self <= DWord::MAX.into() { | ~~~ Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
- Loading branch information