Skip to content

Commit 2ccb5b6

Browse files
committed
Disable question_mark clippy lint in lexical test
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)]`
1 parent a11f5f2 commit 2ccb5b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/lexical.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
clippy::let_underscore_untyped,
1313
clippy::module_name_repetitions,
1414
clippy::needless_late_init,
15+
clippy::question_mark,
1516
clippy::shadow_unrelated,
1617
clippy::similar_names,
1718
clippy::single_match_else,

0 commit comments

Comments
 (0)