|
1 | | -error: `to_owned` called on a `Vec` |
2 | | - --> $DIR/implicit_clone.rs:59:17 |
| 1 | +error: implicitly cloning a `Vec` by calling `to_owned` on its dereferenced type |
| 2 | + --> $DIR/implicit_clone.rs:65:17 |
3 | 3 | | |
4 | 4 | LL | let _ = vec.to_owned(); |
5 | 5 | | ^^^^^^^^ help: consider using: `clone` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::implicit-clone` implied by `-D warnings` |
8 | 8 |
|
9 | | -error: `to_vec` called on a `Vec` |
10 | | - --> $DIR/implicit_clone.rs:60:17 |
| 9 | +error: implicitly cloning a `Vec` by calling `to_vec` on its dereferenced type |
| 10 | + --> $DIR/implicit_clone.rs:66:17 |
11 | 11 | | |
12 | 12 | LL | let _ = vec.to_vec(); |
13 | 13 | | ^^^^^^ help: consider using: `clone` |
14 | 14 |
|
15 | | -error: `to_owned` called on a `Vec` |
16 | | - --> $DIR/implicit_clone.rs:64:21 |
| 15 | +error: implicitly cloning a `Vec` by calling `to_owned` on its dereferenced type |
| 16 | + --> $DIR/implicit_clone.rs:70:21 |
17 | 17 | | |
18 | 18 | LL | let _ = vec_ref.to_owned(); |
19 | 19 | | ^^^^^^^^ help: consider using: `clone` |
20 | 20 |
|
21 | | -error: `to_vec` called on a `Vec` |
22 | | - --> $DIR/implicit_clone.rs:65:21 |
| 21 | +error: implicitly cloning a `Vec` by calling `to_vec` on its dereferenced type |
| 22 | + --> $DIR/implicit_clone.rs:71:21 |
23 | 23 | | |
24 | 24 | LL | let _ = vec_ref.to_vec(); |
25 | 25 | | ^^^^^^ help: consider using: `clone` |
26 | 26 |
|
27 | | -error: `to_owned` called on a `String` |
28 | | - --> $DIR/implicit_clone.rs:77:17 |
| 27 | +error: implicitly cloning a `String` by calling `to_owned` on its dereferenced type |
| 28 | + --> $DIR/implicit_clone.rs:83:17 |
29 | 29 | | |
30 | 30 | LL | let _ = str.to_owned(); |
31 | 31 | | ^^^^^^^^ help: consider using: `clone` |
32 | 32 |
|
33 | | -error: `to_owned` called on a `Kitten` |
34 | | - --> $DIR/implicit_clone.rs:81:20 |
| 33 | +error: implicitly cloning a `Kitten` by calling `to_owned` on its dereferenced type |
| 34 | + --> $DIR/implicit_clone.rs:87:20 |
35 | 35 | | |
36 | 36 | LL | let _ = kitten.to_owned(); |
37 | 37 | | ^^^^^^^^ help: consider using: `clone` |
38 | 38 |
|
39 | | -error: `to_owned` called on a `PathBuf` |
40 | | - --> $DIR/implicit_clone.rs:89:21 |
| 39 | +error: implicitly cloning a `PathBuf` by calling `to_owned` on its dereferenced type |
| 40 | + --> $DIR/implicit_clone.rs:97:21 |
41 | 41 | | |
42 | 42 | LL | let _ = pathbuf.to_owned(); |
43 | 43 | | ^^^^^^^^ help: consider using: `clone` |
44 | 44 |
|
45 | | -error: `to_path_buf` called on a `PathBuf` |
46 | | - --> $DIR/implicit_clone.rs:90:21 |
| 45 | +error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type |
| 46 | + --> $DIR/implicit_clone.rs:98:21 |
47 | 47 | | |
48 | 48 | LL | let _ = pathbuf.to_path_buf(); |
49 | 49 | | ^^^^^^^^^^^ help: consider using: `clone` |
50 | 50 |
|
51 | | -error: `to_owned` called on a `OsString` |
52 | | - --> $DIR/implicit_clone.rs:93:23 |
| 51 | +error: implicitly cloning a `OsString` by calling `to_owned` on its dereferenced type |
| 52 | + --> $DIR/implicit_clone.rs:101:23 |
53 | 53 | | |
54 | 54 | LL | let _ = os_string.to_owned(); |
55 | 55 | | ^^^^^^^^ help: consider using: `clone` |
56 | 56 |
|
57 | | -error: `to_os_string` called on a `OsString` |
58 | | - --> $DIR/implicit_clone.rs:94:23 |
| 57 | +error: implicitly cloning a `OsString` by calling `to_os_string` on its dereferenced type |
| 58 | + --> $DIR/implicit_clone.rs:102:23 |
59 | 59 | | |
60 | 60 | LL | let _ = os_string.to_os_string(); |
61 | 61 | | ^^^^^^^^^^^^ help: consider using: `clone` |
|
0 commit comments