]>
Commit | Line | Data |
---|---|---|
cdc7bbd5 | 1 | error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference |
3c0e092e | 2 | --> $DIR/wrong_self_conventions_mut.rs:14:24 |
cdc7bbd5 XL |
3 | | |
4 | LL | pub fn to_many(&mut self) -> Option<&mut [T]> { | |
5 | | ^^^^^^^^^ | |
6 | | | |
7 | = note: `-D clippy::wrong-self-convention` implied by `-D warnings` | |
8 | = help: consider choosing a less ambiguous name | |
9 | ||
10 | error: methods with the following characteristics: (`to_*` and `*_mut`) usually take `self` by mutable reference | |
3c0e092e | 11 | --> $DIR/wrong_self_conventions_mut.rs:22:28 |
cdc7bbd5 XL |
12 | | |
13 | LL | pub fn to_many_mut(&self) -> Option<&[T]> { | |
14 | | ^^^^^ | |
15 | | | |
16 | = help: consider choosing a less ambiguous name | |
17 | ||
18 | error: aborting due to 2 previous errors | |
19 |