fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
679 B20 linesraw
1error: methods called `from_*` usually take no `self`
2  --> $DIR/wrong_self_convention2.rs:54:29
3   |
4LL |         pub fn from_be_self(self) -> Self {
5   |                             ^^^^
6   |
7   = help: consider choosing a less ambiguous name
8   = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::wrong_self_convention)]`
10
11error: methods called `from_*` usually take no `self`
12  --> $DIR/wrong_self_convention2.rs:64:25
13   |
14LL |         fn from_be_self(self) -> Self;
15   |                         ^^^^
16   |
17   = help: consider choosing a less ambiguous name
18
19error: aborting due to 2 previous errors
20