Skip to content

Commit

Permalink
Suppress broken semicolon_if_nothing_returned lint
Browse files Browse the repository at this point in the history
Gonna assume this is due to rust-lang/rust-clippy#7768.

    error: consider adding a `;` to the last statement for consistent formatting
      --> src/lib.rs:84:9
       |
    84 | /         dtoa! {
    85 | |             floating_type: f32,
    86 | |             significand_type: u32,
    87 | |             exponent_type: i32,
    ...  |
    98 | |             min_power: (-36),
    99 | |         };
       | |__________^
       |
       = note: `-D clippy::semicolon-if-nothing-returned` implied by `-D clippy::pedantic`
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
    help: add a `;` here
       |
    84 ~         dtoa! {
    85 +             floating_type: f32,
    86 +             significand_type: u32,
    87 +             exponent_type: i32,
    88 +
    89 +             diy_significand_size: 32,
     ...

    error: consider adding a `;` to the last statement for consistent formatting
       --> src/lib.rs:106:9
        |
    106 | /         dtoa! {
    107 | |             floating_type: f64,
    108 | |             significand_type: u64,
    109 | |             exponent_type: isize,
    ...   |
    120 | |             min_power: (-348),
    121 | |         };
        | |__________^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
    help: add a `;` here
        |
    106 ~         dtoa! {
    107 +             floating_type: f64,
    108 +             significand_type: u64,
    109 +             exponent_type: isize,
    110 +
    111 +             diy_significand_size: 64,
      ...
  • Loading branch information
dtolnay committed Oct 5, 2021
1 parent 6ea8794 commit f9cb8f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
if_not_else,
missing_errors_doc,
range_plus_one,
semicolon_if_nothing_returned, // https://github.com/rust-lang/rust-clippy/issues/7768
shadow_unrelated,
transmute_float_to_int,
unreadable_literal,
Expand Down

0 comments on commit f9cb8f0

Please sign in to comment.