1 error: this `to_owned` call clones the Cow<'_, str> itself and does not cause the Cow<'_, str> contents to become owned
2 --> $DIR/suspicious_to_owned.rs:16:13
4 LL | let _ = cow.to_owned();
5 | ^^^^^^^^^^^^^^ help: consider using, depending on intent: `cow.clone()` or `cow.into_owned()`
7 = note: `-D clippy::suspicious-to-owned` implied by `-D warnings`
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 --> $DIR/suspicious_to_owned.rs:26:13
12 LL | let _ = cow.to_owned();
13 | ^^^^^^^^^^^^^^ help: consider using, depending on intent: `cow.clone()` or `cow.into_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 --> $DIR/suspicious_to_owned.rs:36:13
18 LL | let _ = cow.to_owned();
19 | ^^^^^^^^^^^^^^ help: consider using, depending on intent: `cow.clone()` or `cow.into_owned()`
21 error: this `to_owned` call clones the Cow<'_, str> itself and does not cause the Cow<'_, str> contents to become owned
22 --> $DIR/suspicious_to_owned.rs:46:13
24 LL | let _ = cow.to_owned();
25 | ^^^^^^^^^^^^^^ help: consider using, depending on intent: `cow.clone()` or `cow.into_owned()`
27 error: implicitly cloning a `String` by calling `to_owned` on its dereferenced type
28 --> $DIR/suspicious_to_owned.rs:60:13
30 LL | let _ = String::from(moo).to_owned();
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `String::from(moo).clone()`
33 = note: `-D clippy::implicit-clone` implied by `-D warnings`
35 error: implicitly cloning a `Vec` by calling `to_owned` on its dereferenced type
36 --> $DIR/suspicious_to_owned.rs:61:13
38 LL | let _ = moos_vec.to_owned();
39 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `moos_vec.clone()`
41 error: aborting due to 6 previous errors