From 09c686b075096d48155cfb32265068f962afc56c Mon Sep 17 00:00:00 2001 From: Alex Huszagh Date: Mon, 6 Jun 2022 11:47:32 -0500 Subject: [PATCH] Fix lint for range contains. --- lexical-parse-float/src/lemire.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexical-parse-float/src/lemire.rs b/lexical-parse-float/src/lemire.rs index 63f49ef6..7f6501ce 100644 --- a/lexical-parse-float/src/lemire.rs +++ b/lexical-parse-float/src/lemire.rs @@ -85,7 +85,7 @@ pub fn compute_float(q: i64, mut w: u64, lossy: bool) -> Extende // . For detailed // explanations of rounding for positive exponents, see // . - let inside_safe_exponent = (q >= -27) && (q <= 55); + let inside_safe_exponent = (-27..=55).contains(&q); if !inside_safe_exponent { return compute_error_scaled::(q, hi, lz); }