1
1
error: consider adding a `;` to the last statement for consistent formatting
2
- --> tests/ui/semicolon_if_nothing_returned.rs:13 :5
2
+ --> tests/ui/semicolon_if_nothing_returned.rs:18 :5
3
3
|
4
4
LL | println!("Hello")
5
5
| ^^^^^^^^^^^^^^^^^ help: add a `;` here: `println!("Hello");`
@@ -8,25 +8,25 @@ LL | println!("Hello")
8
8
= help: to override `-D warnings` add `#[allow(clippy::semicolon_if_nothing_returned)]`
9
9
10
10
error: consider adding a `;` to the last statement for consistent formatting
11
- --> tests/ui/semicolon_if_nothing_returned.rs:17 :5
11
+ --> tests/ui/semicolon_if_nothing_returned.rs:22 :5
12
12
|
13
13
LL | get_unit()
14
14
| ^^^^^^^^^^ help: add a `;` here: `get_unit();`
15
15
16
16
error: consider adding a `;` to the last statement for consistent formatting
17
- --> tests/ui/semicolon_if_nothing_returned.rs:22 :5
17
+ --> tests/ui/semicolon_if_nothing_returned.rs:27 :5
18
18
|
19
19
LL | y = x + 1
20
20
| ^^^^^^^^^ help: add a `;` here: `y = x + 1;`
21
21
22
22
error: consider adding a `;` to the last statement for consistent formatting
23
- --> tests/ui/semicolon_if_nothing_returned.rs:28 :9
23
+ --> tests/ui/semicolon_if_nothing_returned.rs:33 :9
24
24
|
25
25
LL | hello()
26
26
| ^^^^^^^ help: add a `;` here: `hello();`
27
27
28
28
error: consider adding a `;` to the last statement for consistent formatting
29
- --> tests/ui/semicolon_if_nothing_returned.rs:39 :9
29
+ --> tests/ui/semicolon_if_nothing_returned.rs:44 :9
30
30
|
31
31
LL | ptr::drop_in_place(s.as_mut_ptr())
32
32
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `ptr::drop_in_place(s.as_mut_ptr());`
0 commit comments