|
1 | 1 | error: unneeded unit return type
|
2 |
| - --> $DIR/unused_unit.rs:19:58 |
| 2 | + --> $DIR/unused_unit.rs:20:58 |
3 | 3 | |
|
4 | 4 | LL | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) -> ()
|
5 | 5 | | ^^^^^^ help: remove the `-> ()`
|
6 | 6 | |
|
7 | 7 | note: the lint level is defined here
|
8 |
| - --> $DIR/unused_unit.rs:12:9 |
| 8 | + --> $DIR/unused_unit.rs:13:9 |
9 | 9 | |
|
10 | 10 | LL | #![deny(clippy::unused_unit)]
|
11 | 11 | | ^^^^^^^^^^^^^^^^^^^
|
12 | 12 |
|
13 | 13 | error: unneeded unit return type
|
14 |
| - --> $DIR/unused_unit.rs:19:28 |
| 14 | + --> $DIR/unused_unit.rs:20:28 |
15 | 15 | |
|
16 | 16 | LL | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) -> ()
|
17 | 17 | | ^^^^^^ help: remove the `-> ()`
|
18 | 18 |
|
19 | 19 | error: unneeded unit return type
|
20 |
| - --> $DIR/unused_unit.rs:20:18 |
| 20 | + --> $DIR/unused_unit.rs:21:18 |
21 | 21 | |
|
22 | 22 | LL | where G: Fn() -> () {
|
23 | 23 | | ^^^^^^ help: remove the `-> ()`
|
24 | 24 |
|
25 | 25 | error: unneeded unit return type
|
26 |
| - --> $DIR/unused_unit.rs:21:26 |
| 26 | + --> $DIR/unused_unit.rs:22:26 |
27 | 27 | |
|
28 | 28 | LL | let _y: &dyn Fn() -> () = &f;
|
29 | 29 | | ^^^^^^ help: remove the `-> ()`
|
30 | 30 |
|
31 | 31 | error: unneeded unit return type
|
32 |
| - --> $DIR/unused_unit.rs:28:18 |
| 32 | + --> $DIR/unused_unit.rs:29:18 |
33 | 33 | |
|
34 | 34 | LL | fn into(self) -> () {
|
35 | 35 | | ^^^^^^ help: remove the `-> ()`
|
36 | 36 |
|
37 | 37 | error: unneeded unit expression
|
38 |
| - --> $DIR/unused_unit.rs:29:9 |
| 38 | + --> $DIR/unused_unit.rs:30:9 |
39 | 39 | |
|
40 | 40 | LL | ()
|
41 | 41 | | ^^ help: remove the final `()`
|
42 | 42 |
|
43 | 43 | error: unneeded unit return type
|
44 |
| - --> $DIR/unused_unit.rs:34:29 |
| 44 | + --> $DIR/unused_unit.rs:35:29 |
45 | 45 | |
|
46 | 46 | LL | fn redundant<F: FnOnce() -> (), G, H>(&self, _f: F, _g: G, _h: H)
|
47 | 47 | | ^^^^^^ help: remove the `-> ()`
|
48 | 48 |
|
49 | 49 | error: unneeded unit return type
|
50 |
| - --> $DIR/unused_unit.rs:36:19 |
| 50 | + --> $DIR/unused_unit.rs:37:19 |
51 | 51 | |
|
52 | 52 | LL | G: FnMut() -> (),
|
53 | 53 | | ^^^^^^ help: remove the `-> ()`
|
54 | 54 |
|
55 | 55 | error: unneeded unit return type
|
56 |
| - --> $DIR/unused_unit.rs:37:16 |
| 56 | + --> $DIR/unused_unit.rs:38:16 |
57 | 57 | |
|
58 | 58 | LL | H: Fn() -> ();
|
59 | 59 | | ^^^^^^ help: remove the `-> ()`
|
60 | 60 |
|
61 | 61 | error: unneeded unit return type
|
62 |
| - --> $DIR/unused_unit.rs:41:29 |
| 62 | + --> $DIR/unused_unit.rs:42:29 |
63 | 63 | |
|
64 | 64 | LL | fn redundant<F: FnOnce() -> (), G, H>(&self, _f: F, _g: G, _h: H)
|
65 | 65 | | ^^^^^^ help: remove the `-> ()`
|
66 | 66 |
|
67 | 67 | error: unneeded unit return type
|
68 |
| - --> $DIR/unused_unit.rs:43:19 |
| 68 | + --> $DIR/unused_unit.rs:44:19 |
69 | 69 | |
|
70 | 70 | LL | G: FnMut() -> (),
|
71 | 71 | | ^^^^^^ help: remove the `-> ()`
|
72 | 72 |
|
73 | 73 | error: unneeded unit return type
|
74 |
| - --> $DIR/unused_unit.rs:44:16 |
| 74 | + --> $DIR/unused_unit.rs:45:16 |
75 | 75 | |
|
76 | 76 | LL | H: Fn() -> () {}
|
77 | 77 | | ^^^^^^ help: remove the `-> ()`
|
78 | 78 |
|
79 | 79 | error: unneeded unit return type
|
80 |
| - --> $DIR/unused_unit.rs:47:17 |
| 80 | + --> $DIR/unused_unit.rs:48:17 |
81 | 81 | |
|
82 | 82 | LL | fn return_unit() -> () { () }
|
83 | 83 | | ^^^^^^ help: remove the `-> ()`
|
84 | 84 |
|
85 | 85 | error: unneeded unit expression
|
86 |
| - --> $DIR/unused_unit.rs:47:26 |
| 86 | + --> $DIR/unused_unit.rs:48:26 |
87 | 87 | |
|
88 | 88 | LL | fn return_unit() -> () { () }
|
89 | 89 | | ^^ help: remove the final `()`
|
90 | 90 |
|
91 | 91 | error: unneeded `()`
|
92 |
| - --> $DIR/unused_unit.rs:57:14 |
| 92 | + --> $DIR/unused_unit.rs:58:14 |
93 | 93 | |
|
94 | 94 | LL | break();
|
95 | 95 | | ^^ help: remove the `()`
|
96 | 96 |
|
97 | 97 | error: unneeded `()`
|
98 |
| - --> $DIR/unused_unit.rs:59:11 |
| 98 | + --> $DIR/unused_unit.rs:60:11 |
99 | 99 | |
|
100 | 100 | LL | return();
|
101 | 101 | | ^^ help: remove the `()`
|
102 | 102 |
|
103 | 103 | error: unneeded unit return type
|
104 |
| - --> $DIR/unused_unit.rs:76:10 |
| 104 | + --> $DIR/unused_unit.rs:77:10 |
105 | 105 | |
|
106 | 106 | LL | fn test()->(){}
|
107 | 107 | | ^^^^ help: remove the `-> ()`
|
108 | 108 |
|
109 | 109 | error: unneeded unit return type
|
110 |
| - --> $DIR/unused_unit.rs:79:11 |
| 110 | + --> $DIR/unused_unit.rs:80:11 |
111 | 111 | |
|
112 | 112 | LL | fn test2() ->(){}
|
113 | 113 | | ^^^^^ help: remove the `-> ()`
|
114 | 114 |
|
115 | 115 | error: unneeded unit return type
|
116 |
| - --> $DIR/unused_unit.rs:82:11 |
| 116 | + --> $DIR/unused_unit.rs:83:11 |
117 | 117 | |
|
118 | 118 | LL | fn test3()-> (){}
|
119 | 119 | | ^^^^^ help: remove the `-> ()`
|
|
0 commit comments