Skip to content

Commit

Permalink
Ignore large_digit_groups pedantic clippy lint in test
Browse files Browse the repository at this point in the history
    warning: digit groups should be smaller
       --> tests/test.rs:962:9
        |
    962 |         51.24817837550540_4,  // 51.2481783755054_1
        |         ^^^^^^^^^^^^^^^^^^^ help: consider: `51.248_178_375_505_404`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups
        = note: `-W clippy::large-digit-groups` implied by `-W clippy::pedantic`
        = help: to override `-W clippy::pedantic` add `#[allow(clippy::large_digit_groups)]`

    warning: digit groups should be smaller
       --> tests/test.rs:963:10
        |
    963 |         -93.3113703768803_3,  // -93.3113703768803_2
        |          ^^^^^^^^^^^^^^^^^^ help: consider: `93.311_370_376_880_33`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups

    warning: digit groups should be smaller
       --> tests/test.rs:964:10
        |
    964 |         -36.5739948427534_36, // -36.5739948427534_4
        |          ^^^^^^^^^^^^^^^^^^^ help: consider: `36.573_994_842_753_436`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups

    warning: digit groups should be smaller
       --> tests/test.rs:965:9
        |
    965 |         52.31400820410624_4,  // 52.31400820410624_
        |         ^^^^^^^^^^^^^^^^^^^ help: consider: `52.314_008_204_106_244`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups

    warning: digit groups should be smaller
       --> tests/test.rs:966:9
        |
    966 |         97.4536532003468_5,   // 97.4536532003468_4
        |         ^^^^^^^^^^^^^^^^^^ help: consider: `97.453_653_200_346_85`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups
  • Loading branch information
dtolnay committed Jun 2, 2024
1 parent 18e9b89 commit b83d243
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
clippy::float_cmp,
clippy::incompatible_msrv, // https://github.com/rust-lang/rust-clippy/issues/12257
clippy::items_after_statements,
clippy::large_digit_groups,
clippy::let_underscore_untyped,
clippy::shadow_unrelated,
clippy::too_many_lines,
Expand Down

0 comments on commit b83d243

Please sign in to comment.