Skip to content

Commit

Permalink
Suppress buggy excessive_precision lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 20, 2020
1 parent e7f169d commit 5d53432
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/json/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,8 @@ fn f64_from_parts(nonnegative: bool, significand: u64, mut exponent: i32) -> Res
Ok(if nonnegative { f } else { -f })
}

// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/5201
#[allow(clippy::excessive_precision)]
static POW10: [f64; 309] = [
1e000, 1e001, 1e002, 1e003, 1e004, 1e005, 1e006, 1e007, 1e008, 1e009, //
1e010, 1e011, 1e012, 1e013, 1e014, 1e015, 1e016, 1e017, 1e018, 1e019, //
Expand Down

0 comments on commit 5d53432

Please sign in to comment.