From d1d4554f26000c876d67ae2992c628927271c847 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 4 Oct 2021 23:49:30 -0400 Subject: [PATCH] Suppress broken semicolon_if_nothing_returned lint Gonna assume this is due to https://github.com/rust-lang/rust-clippy/issues/7768. error: consider adding a `;` to the last statement for consistent formatting --> src/lib.rs:271:1 | 271 | / impl_Integer!( 272 | | I8_MAX_LEN => i8, 273 | | U8_MAX_LEN => u8, 274 | | I16_MAX_LEN => i16, ... | 277 | | U32_MAX_LEN => u32 278 | | as u32); | |____________^ | = 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 | 271 + impl_Integer!( 272 + I8_MAX_LEN => i8, 273 + U8_MAX_LEN => u8, 274 + I16_MAX_LEN => i16, 275 + U16_MAX_LEN => u16, 276 + I32_MAX_LEN => i32, ... error: consider adding a `;` to the last statement for consistent formatting --> src/lib.rs:280:1 | 280 | impl_Integer!(I64_MAX_LEN => i64, U64_MAX_LEN => u64 as u64); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `impl_Integer!(I64_MAX_LEN => i64, U64_MAX_LEN => u64 as u64);;` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned error: consider adding a `;` to the last statement for consistent formatting --> src/lib.rs:289:1 | 289 | impl_Integer!(I64_MAX_LEN => isize, U64_MAX_LEN => usize as u64); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `impl_Integer!(I64_MAX_LEN => isize, U64_MAX_LEN => usize as u64);;` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 8d4582e..9ae9d0b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -65,6 +65,7 @@ expl_impl_clone_on_copy, missing_errors_doc, must_use_candidate, + semicolon_if_nothing_returned, // https://github.com/rust-lang/rust-clippy/issues/7768 transmute_ptr_to_ptr ) )]