From 2ccb5b67ca34a5e53b42fa608d756e25e57f91a3 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 15 Nov 2024 18:48:24 -0800 Subject: [PATCH] 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)]` --- tests/lexical.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/lexical.rs b/tests/lexical.rs index 368c84478..77967956c 100644 --- a/tests/lexical.rs +++ b/tests/lexical.rs @@ -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,