mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 10:33:27 +00:00
55 lines
1.3 KiB
Text
55 lines
1.3 KiB
Text
error: consider moving the `;` inside the block for consistent formatting
|
|
--> tests/ui/semicolon_inside_block.rs:38:5
|
|
|
|
|
LL | { unit_fn_block() };
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::semicolon-inside-block` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::semicolon_inside_block)]`
|
|
help: put the `;` here
|
|
|
|
|
LL - { unit_fn_block() };
|
|
LL + { unit_fn_block(); }
|
|
|
|
|
|
|
error: consider moving the `;` inside the block for consistent formatting
|
|
--> tests/ui/semicolon_inside_block.rs:39:5
|
|
|
|
|
LL | unsafe { unit_fn_block() };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: put the `;` here
|
|
|
|
|
LL - unsafe { unit_fn_block() };
|
|
LL + unsafe { unit_fn_block(); }
|
|
|
|
|
|
|
error: consider moving the `;` inside the block for consistent formatting
|
|
--> tests/ui/semicolon_inside_block.rs:47:5
|
|
|
|
|
LL | / {
|
|
LL | | unit_fn_block();
|
|
LL | | unit_fn_block()
|
|
LL | | };
|
|
| |______^
|
|
|
|
|
help: put the `;` here
|
|
|
|
|
LL ~ unit_fn_block();
|
|
LL ~ }
|
|
|
|
|
|
|
error: consider moving the `;` inside the block for consistent formatting
|
|
--> tests/ui/semicolon_inside_block.rs:60:5
|
|
|
|
|
LL | { m!(()) };
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: put the `;` here
|
|
|
|
|
LL - { m!(()) };
|
|
LL + { m!(()); }
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|