File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
#![ warn( clippy:: semicolon_if_nothing_returned) ]
2
2
#![ allow( clippy:: redundant_closure) ]
3
- #![ feature( label_break_value) ]
4
3
#![ feature( let_else) ]
5
4
6
5
fn get_unit ( ) { }
Original file line number Diff line number Diff line change 1
1
error: 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
3
3
|
4
4
LL | println!("Hello")
5
5
| ^^^^^^^^^^^^^^^^^ help: add a `;` here: `println!("Hello");`
6
6
|
7
7
= note: `-D clippy::semicolon-if-nothing-returned` implied by `-D warnings`
8
8
9
9
error: 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
11
11
|
12
12
LL | get_unit()
13
13
| ^^^^^^^^^^ help: add a `;` here: `get_unit();`
14
14
15
15
error: 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
17
17
|
18
18
LL | y = x + 1
19
19
| ^^^^^^^^^ help: add a `;` here: `y = x + 1;`
20
20
21
21
error: 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
23
23
|
24
24
LL | hello()
25
25
| ^^^^^^^ help: add a `;` here: `hello();`
26
26
27
27
error: 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
29
29
|
30
30
LL | ptr::drop_in_place(s.as_mut_ptr())
31
31
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `ptr::drop_in_place(s.as_mut_ptr());`
You can’t perform that action at this time.
0 commit comments