Skip to content

Commit

Permalink
Disable question_mark clippy lint in lexical test
Browse files Browse the repository at this point in the history
Serde_json uses #![deny(clippy::question_mark_used)].

    warning: this `match` expression can be replaced with `?`
      --> tests/../src/lexical/algorithm.rs:54:21
       |
    54 |           let value = match mantissa.checked_mul(power) {
       |  _____________________^
    55 | |             None => return None,
    56 | |             Some(value) => value,
    57 | |         };
       | |_________^ help: try instead: `mantissa.checked_mul(power)?`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
       = note: `-W clippy::question-mark` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::question_mark)]`
  • Loading branch information
dtolnay committed Nov 16, 2024
1 parent a11f5f2 commit 2ccb5b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/lexical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
clippy::let_underscore_untyped,
clippy::module_name_repetitions,
clippy::needless_late_init,
clippy::question_mark,
clippy::shadow_unrelated,
clippy::similar_names,
clippy::single_match_else,
Expand Down

0 comments on commit 2ccb5b6

Please sign in to comment.