Skip to content

Commit

Permalink
Fix lint for range contains.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhuszagh committed Jun 6, 2022
1 parent a8dd2d2 commit 09c686b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lexical-parse-float/src/lemire.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub fn compute_float<F: LemireFloat>(q: i64, mut w: u64, lossy: bool) -> Extende
// <https://arxiv.org/pdf/2101.11408.pdf#section.9.1>. For detailed
// explanations of rounding for positive exponents, see
// <https://arxiv.org/pdf/2101.11408.pdf#section.8>.
let inside_safe_exponent = (q >= -27) && (q <= 55);
let inside_safe_exponent = (-27..=55).contains(&q);
if !inside_safe_exponent {
return compute_error_scaled::<F>(q, hi, lz);
}
Expand Down

0 comments on commit 09c686b

Please # to comment.