2021-05-20 12:30:31 +02:00
|
|
|
error: methods called `from_*` usually take no `self`
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/wrong_self_convention2.rs:54:29
|
2021-04-08 17:50:13 +02:00
|
|
|
|
|
2021-05-20 12:30:31 +02:00
|
|
|
LL | pub fn from_be_self(self) -> Self {
|
|
|
|
| ^^^^
|
2021-04-08 17:50:13 +02:00
|
|
|
|
|
|
|
|
= help: consider choosing a less ambiguous name
|
2022-09-22 20:04:22 +04:00
|
|
|
= note: `-D clippy::wrong-self-convention` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::wrong_self_convention)]`
|
2021-04-08 17:50:13 +02:00
|
|
|
|
2021-05-20 12:30:31 +02:00
|
|
|
error: methods called `from_*` usually take no `self`
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/wrong_self_convention2.rs:64:25
|
2021-05-20 12:30:31 +02:00
|
|
|
|
|
|
|
|
LL | fn from_be_self(self) -> Self;
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= help: consider choosing a less ambiguous name
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2021-04-08 17:50:13 +02:00
|
|
|
|