mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
40 lines
953 B
Text
40 lines
953 B
Text
|
error: consider moving the `;` outside the block for consistent formatting
|
||
|
--> $DIR/semicolon_outside_block.rs:42:5
|
||
|
|
|
||
|
LL | { unit_fn_block(); }
|
||
|
| ^^^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: `-D clippy::semicolon-outside-block` implied by `-D warnings`
|
||
|
help: put the `;` here
|
||
|
|
|
||
|
LL - { unit_fn_block(); }
|
||
|
LL + { unit_fn_block() };
|
||
|
|
|
||
|
|
||
|
error: consider moving the `;` outside the block for consistent formatting
|
||
|
--> $DIR/semicolon_outside_block.rs:43:5
|
||
|
|
|
||
|
LL | unsafe { unit_fn_block(); }
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
help: put the `;` here
|
||
|
|
|
||
|
LL - unsafe { unit_fn_block(); }
|
||
|
LL + unsafe { unit_fn_block() };
|
||
|
|
|
||
|
|
||
|
error: consider moving the `;` outside the block for consistent formatting
|
||
|
--> $DIR/semicolon_outside_block.rs:62:5
|
||
|
|
|
||
|
LL | { m!(()); }
|
||
|
| ^^^^^^^^^^^
|
||
|
|
|
||
|
help: put the `;` here
|
||
|
|
|
||
|
LL - { m!(()); }
|
||
|
LL + { m!(()) };
|
||
|
|
|
||
|
|
||
|
error: aborting due to 3 previous errors
|
||
|
|