2021-05-20 10:30:31 +00:00
|
|
|
error: methods called `from_*` usually take no `self`
|
2021-06-03 06:41:37 +00:00
|
|
|
--> $DIR/wrong_self_convention2.rs:55:29
|
2021-04-08 15:50:13 +00:00
|
|
|
|
|
2021-05-20 10:30:31 +00:00
|
|
|
LL | pub fn from_be_self(self) -> Self {
|
|
|
|
| ^^^^
|
2021-04-08 15:50:13 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::wrong-self-convention` implied by `-D warnings`
|
|
|
|
= help: consider choosing a less ambiguous name
|
|
|
|
|
2021-05-20 10:30:31 +00:00
|
|
|
error: methods called `from_*` usually take no `self`
|
2021-06-03 06:41:37 +00:00
|
|
|
--> $DIR/wrong_self_convention2.rs:64:25
|
2021-05-20 10:30:31 +00: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 15:50:13 +00:00
|
|
|
|