This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11#![ warn( clippy:: semicolon_if_nothing_returned) ]
22#![ allow( clippy:: redundant_closure) ]
3- #![ feature( label_break_value) ]
43#![ feature( let_else) ]
54
65fn get_unit ( ) { }
Original file line number Diff line number Diff line change 11error: consider adding a `;` to the last statement for consistent formatting
2- --> $DIR/semicolon_if_nothing_returned.rs:10 :5
2+ --> $DIR/semicolon_if_nothing_returned.rs:9 :5
33 |
44LL | println!("Hello")
55 | ^^^^^^^^^^^^^^^^^ help: add a `;` here: `println!("Hello");`
66 |
77 = note: `-D clippy::semicolon-if-nothing-returned` implied by `-D warnings`
88
99error: consider adding a `;` to the last statement for consistent formatting
10- --> $DIR/semicolon_if_nothing_returned.rs:14 :5
10+ --> $DIR/semicolon_if_nothing_returned.rs:13 :5
1111 |
1212LL | get_unit()
1313 | ^^^^^^^^^^ help: add a `;` here: `get_unit();`
1414
1515error: consider adding a `;` to the last statement for consistent formatting
16- --> $DIR/semicolon_if_nothing_returned.rs:19 :5
16+ --> $DIR/semicolon_if_nothing_returned.rs:18 :5
1717 |
1818LL | y = x + 1
1919 | ^^^^^^^^^ help: add a `;` here: `y = x + 1;`
2020
2121error: consider adding a `;` to the last statement for consistent formatting
22- --> $DIR/semicolon_if_nothing_returned.rs:25 :9
22+ --> $DIR/semicolon_if_nothing_returned.rs:24 :9
2323 |
2424LL | hello()
2525 | ^^^^^^^ help: add a `;` here: `hello();`
2626
2727error: consider adding a `;` to the last statement for consistent formatting
28- --> $DIR/semicolon_if_nothing_returned.rs:36 :9
28+ --> $DIR/semicolon_if_nothing_returned.rs:35 :9
2929 |
3030LL | ptr::drop_in_place(s.as_mut_ptr())
3131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `ptr::drop_in_place(s.as_mut_ptr());`
You can’t perform that action at this time.
0 commit comments