@@ -4,7 +4,7 @@ error: unused `self` argument
4
4
LL | fn unused_self_move(self) {}
5
5
| ^^^^
6
6
|
7
- = help: consider refactoring to a associated function
7
+ = help: consider refactoring to an associated function
8
8
= note: `-D clippy::unused-self` implied by `-D warnings`
9
9
10
10
error: unused `self` argument
@@ -13,63 +13,63 @@ error: unused `self` argument
13
13
LL | fn unused_self_ref(&self) {}
14
14
| ^^^^^
15
15
|
16
- = help: consider refactoring to a associated function
16
+ = help: consider refactoring to an associated function
17
17
18
18
error: unused `self` argument
19
19
--> $DIR/unused_self.rs:13:32
20
20
|
21
21
LL | fn unused_self_mut_ref(&mut self) {}
22
22
| ^^^^^^^^^
23
23
|
24
- = help: consider refactoring to a associated function
24
+ = help: consider refactoring to an associated function
25
25
26
26
error: unused `self` argument
27
27
--> $DIR/unused_self.rs:14:32
28
28
|
29
29
LL | fn unused_self_pin_ref(self: Pin<&Self>) {}
30
30
| ^^^^
31
31
|
32
- = help: consider refactoring to a associated function
32
+ = help: consider refactoring to an associated function
33
33
34
34
error: unused `self` argument
35
35
--> $DIR/unused_self.rs:15:36
36
36
|
37
37
LL | fn unused_self_pin_mut_ref(self: Pin<&mut Self>) {}
38
38
| ^^^^
39
39
|
40
- = help: consider refactoring to a associated function
40
+ = help: consider refactoring to an associated function
41
41
42
42
error: unused `self` argument
43
43
--> $DIR/unused_self.rs:16:35
44
44
|
45
45
LL | fn unused_self_pin_nested(self: Pin<Arc<Self>>) {}
46
46
| ^^^^
47
47
|
48
- = help: consider refactoring to a associated function
48
+ = help: consider refactoring to an associated function
49
49
50
50
error: unused `self` argument
51
51
--> $DIR/unused_self.rs:17:28
52
52
|
53
53
LL | fn unused_self_box(self: Box<Self>) {}
54
54
| ^^^^
55
55
|
56
- = help: consider refactoring to a associated function
56
+ = help: consider refactoring to an associated function
57
57
58
58
error: unused `self` argument
59
59
--> $DIR/unused_self.rs:18:40
60
60
|
61
61
LL | fn unused_with_other_used_args(&self, x: u8, y: u8) -> u8 {
62
62
| ^^^^^
63
63
|
64
- = help: consider refactoring to a associated function
64
+ = help: consider refactoring to an associated function
65
65
66
66
error: unused `self` argument
67
67
--> $DIR/unused_self.rs:21:37
68
68
|
69
69
LL | fn unused_self_class_method(&self) {
70
70
| ^^^^^
71
71
|
72
- = help: consider refactoring to a associated function
72
+ = help: consider refactoring to an associated function
73
73
74
74
error: aborting due to 9 previous errors
75
75
0 commit comments