|
1 |
| -error: this `to_owned` call clones the std::borrow::Cow<'_, str> itself and does not cause the std::borrow::Cow<'_, str> contents to become owned |
| 1 | +error: this `to_owned` call clones the Cow<'_, str> itself and does not cause the Cow<'_, str> contents to become owned |
2 | 2 | --> $DIR/suspicious_to_owned.rs:16:13
|
3 | 3 | |
|
4 | 4 | LL | let _ = cow.to_owned();
|
5 | 5 | | ^^^^^^^^^^^^^^ help: consider using, depending on intent: `cow.clone()` or `cow.into_owned()`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::suspicious-to-owned` implied by `-D warnings`
|
8 | 8 |
|
9 |
| -error: this `to_owned` call clones the std::borrow::Cow<'_, [char; 3]> itself and does not cause the std::borrow::Cow<'_, [char; 3]> contents to become owned |
| 9 | +error: this `to_owned` call clones the Cow<'_, [char; 3]> itself and does not cause the Cow<'_, [char; 3]> contents to become owned |
10 | 10 | --> $DIR/suspicious_to_owned.rs:26:13
|
11 | 11 | |
|
12 | 12 | LL | let _ = cow.to_owned();
|
13 | 13 | | ^^^^^^^^^^^^^^ help: consider using, depending on intent: `cow.clone()` or `cow.into_owned()`
|
14 | 14 |
|
15 |
| -error: this `to_owned` call clones the std::borrow::Cow<'_, std::vec::Vec<char>> itself and does not cause the std::borrow::Cow<'_, std::vec::Vec<char>> contents to become owned |
| 15 | +error: this `to_owned` call clones the Cow<'_, Vec<char>> itself and does not cause the Cow<'_, Vec<char>> contents to become owned |
16 | 16 | --> $DIR/suspicious_to_owned.rs:36:13
|
17 | 17 | |
|
18 | 18 | LL | let _ = cow.to_owned();
|
19 | 19 | | ^^^^^^^^^^^^^^ help: consider using, depending on intent: `cow.clone()` or `cow.into_owned()`
|
20 | 20 |
|
21 |
| -error: this `to_owned` call clones the std::borrow::Cow<'_, str> itself and does not cause the std::borrow::Cow<'_, str> contents to become owned |
| 21 | +error: this `to_owned` call clones the Cow<'_, str> itself and does not cause the Cow<'_, str> contents to become owned |
22 | 22 | --> $DIR/suspicious_to_owned.rs:46:13
|
23 | 23 | |
|
24 | 24 | LL | let _ = cow.to_owned();
|
|
0 commit comments