json/tests/lexical.rs
David Tolnay 7db1ea907d
Ignore needless_late_init Clippy lint
error: unneeded late initalization
       --> tests/../src/lexical/float.rs:173:9
        |
    173 |         let exp: u64;
        |         ^^^^^^^^^^^^^
        |
        = note: `-D clippy::needless-late-init` implied by `-D clippy::all`
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
    help: declare `exp` here
        |
    174 |         let exp: u64 = if (fp.exp == F::DENORMAL_EXPONENT) && (fp.mant & F::HIDDEN_BIT_MASK.as_u64()) == 0 {
        |         ++++++++++++++
    help: remove the assignments from the branches
        |
    175 ~             0
    176 |         } else {
    177 ~             (fp.exp + F::EXPONENT_BIAS) as u64
        |
    help: add a semicolon after the `if` expression
        |
    178 |         };
        |          +
2021-12-07 18:41:06 -08:00

51 lines
1023 B
Rust

#![allow(
clippy::cast_lossless,
clippy::cast_possible_truncation,
clippy::cast_possible_wrap,
clippy::cast_precision_loss,
clippy::cast_sign_loss,
clippy::comparison_chain,
clippy::doc_markdown,
clippy::excessive_precision,
clippy::float_cmp,
clippy::if_not_else,
clippy::module_name_repetitions,
clippy::needless_late_init,
clippy::shadow_unrelated,
clippy::similar_names,
clippy::single_match_else,
clippy::too_many_lines,
clippy::unreadable_literal,
clippy::unseparated_literal_suffix,
clippy::wildcard_imports
)]
#[path = "../src/lexical/mod.rs"]
mod lexical;
mod lib {
pub use std::vec::Vec;
pub use std::{cmp, iter, mem, ops};
}
#[path = "lexical/algorithm.rs"]
mod algorithm;
#[path = "lexical/exponent.rs"]
mod exponent;
#[path = "lexical/float.rs"]
mod float;
#[path = "lexical/math.rs"]
mod math;
#[path = "lexical/num.rs"]
mod num;
#[path = "lexical/parse.rs"]
mod parse;
#[path = "lexical/rounding.rs"]
mod rounding;