blob: e29f5f96c886c27e02288533e4c16aca233ac005 [file] [log] [blame]
error: unused `self` argument
--> tests/ui/unused_self.rs:11:29
|
LL | fn unused_self_move(self) {}
| ^^^^
|
= help: consider refactoring to an associated function
= note: `-D clippy::unused-self` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unused_self)]`
error: unused `self` argument
--> tests/ui/unused_self.rs:14:28
|
LL | fn unused_self_ref(&self) {}
| ^^^^^
|
= help: consider refactoring to an associated function
error: unused `self` argument
--> tests/ui/unused_self.rs:17:32
|
LL | fn unused_self_mut_ref(&mut self) {}
| ^^^^^^^^^
|
= help: consider refactoring to an associated function
error: unused `self` argument
--> tests/ui/unused_self.rs:20:32
|
LL | fn unused_self_pin_ref(self: Pin<&Self>) {}
| ^^^^
|
= help: consider refactoring to an associated function
error: unused `self` argument
--> tests/ui/unused_self.rs:23:36
|
LL | fn unused_self_pin_mut_ref(self: Pin<&mut Self>) {}
| ^^^^
|
= help: consider refactoring to an associated function
error: unused `self` argument
--> tests/ui/unused_self.rs:26:35
|
LL | fn unused_self_pin_nested(self: Pin<Arc<Self>>) {}
| ^^^^
|
= help: consider refactoring to an associated function
error: unused `self` argument
--> tests/ui/unused_self.rs:29:28
|
LL | fn unused_self_box(self: Box<Self>) {}
| ^^^^
|
= help: consider refactoring to an associated function
error: unused `self` argument
--> tests/ui/unused_self.rs:32:40
|
LL | fn unused_with_other_used_args(&self, x: u8, y: u8) -> u8 {
| ^^^^^
|
= help: consider refactoring to an associated function
error: unused `self` argument
--> tests/ui/unused_self.rs:37:37
|
LL | fn unused_self_class_method(&self) {
| ^^^^^
|
= help: consider refactoring to an associated function
error: aborting due to 9 previous errors