mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-18 02:38:28 +00:00
19 lines
596 B
Text
19 lines
596 B
Text
error: methods called `from_*` usually take no `self`
|
|
--> $DIR/wrong_self_convention2.rs:55:29
|
|
|
|
|
LL | pub fn from_be_self(self) -> Self {
|
|
| ^^^^
|
|
|
|
|
= note: `-D clippy::wrong-self-convention` implied by `-D warnings`
|
|
= help: consider choosing a less ambiguous name
|
|
|
|
error: methods called `from_*` usually take no `self`
|
|
--> $DIR/wrong_self_convention2.rs:64:25
|
|
|
|
|
LL | fn from_be_self(self) -> Self;
|
|
| ^^^^
|
|
|
|
|
= help: consider choosing a less ambiguous name
|
|
|
|
error: aborting due to 2 previous errors
|
|
|