mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +00:00
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
|
error: consider moving the `;` inside the block for consistent formatting
|
||
|
--> $DIR/semicolon_inside_block.rs:39:5
|
||
|
|
|
||
|
LL | { unit_fn_block() };
|
||
|
| ^^^^^^^^^^^^^^^^^^^^ help: put the `;` here: `{ unit_fn_block(); }`
|
||
|
|
|
||
|
= note: `-D clippy::semicolon-inside-block` implied by `-D warnings`
|
||
|
|
||
|
error: consider moving the `;` inside the block for consistent formatting
|
||
|
--> $DIR/semicolon_inside_block.rs:40:5
|
||
|
|
|
||
|
LL | unsafe { unit_fn_block() };
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: put the `;` here: `unsafe { unit_fn_block(); }`
|
||
|
|
||
|
error: consider moving the `;` inside the block for consistent formatting
|
||
|
--> $DIR/semicolon_inside_block.rs:48:5
|
||
|
|
|
||
|
LL | / {
|
||
|
LL | | unit_fn_block();
|
||
|
LL | | unit_fn_block()
|
||
|
LL | | };
|
||
|
| |______^
|
||
|
|
|
||
|
help: put the `;` here
|
||
|
|
|
||
|
LL ~ {
|
||
|
LL + unit_fn_block();
|
||
|
LL + unit_fn_block();
|
||
|
LL + }
|
||
|
|
|
||
|
|
||
|
error: consider moving the `;` inside the block for consistent formatting
|
||
|
--> $DIR/semicolon_inside_block.rs:61:5
|
||
|
|
|
||
|
LL | { m!(()) };
|
||
|
| ^^^^^^^^^^^ help: put the `;` here: `{ m!(()); }`
|
||
|
|
||
|
error: aborting due to 4 previous errors
|
||
|
|