This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore while_immutable_condition clippy false positive
rust-lang/rust-clippy#3548 error: variables in the condition are not mutated in the loop body --> src/scanner.rs:1031:15 | 1031 | while CHECK!((*parser).buffer, b' ') | _______________^ 1032 | | || ((*parser).flow_level != 0 || (*parser).simple_key_allowed == 0) 1033 | | && CHECK!((*parser).buffer, b'\t') | |__________________________________________________^ | = note: `-D clippy::while-immutable-condition` implied by `-D clippy::all` = note: this may lead to an infinite or to a never running loop = note: this loop contains `return`s or `break`s = help: rewrite it as `if cond { loop { } }` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition error: variables in the condition are not mutated in the loop body --> src/macros.rs:138:9 | 138 | *$string.pointer >= b'0' && *$string.pointer <= b'9' | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: src/scanner.rs:1319:11 | 1319 | while IS_DIGIT!((*parser).buffer) { | --------------------------- in this macro invocation | = note: this may lead to an infinite or to a never running loop = note: this loop contains `return`s or `break`s = help: rewrite it as `if cond { loop { } }` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition = note: this error originates in the macro `IS_DIGIT` (in Nightly builds, run with -Z macro-backtrace for more info)
- Loading branch information