]>
Commit | Line | Data |
---|---|---|
f20569fa | 1 | error: implicitly cloning a `Vec` by calling `to_owned` on its dereferenced type |
c620b35d | 2 | --> tests/ui/implicit_clone.rs:65:13 |
f20569fa XL |
3 | | |
4 | LL | let _ = vec.to_owned(); | |
5099ac24 | 5 | | ^^^^^^^^^^^^^^ help: consider using: `vec.clone()` |
f20569fa XL |
6 | | |
7 | = note: `-D clippy::implicit-clone` implied by `-D warnings` | |
781aab86 | 8 | = help: to override `-D warnings` add `#[allow(clippy::implicit_clone)]` |
f20569fa XL |
9 | |
10 | error: implicitly cloning a `Vec` by calling `to_vec` on its dereferenced type | |
c620b35d | 11 | --> tests/ui/implicit_clone.rs:66:13 |
f20569fa XL |
12 | | |
13 | LL | let _ = vec.to_vec(); | |
5099ac24 | 14 | | ^^^^^^^^^^^^ help: consider using: `vec.clone()` |
f20569fa | 15 | |
f20569fa | 16 | error: implicitly cloning a `Vec` by calling `to_vec` on its dereferenced type |
c620b35d | 17 | --> tests/ui/implicit_clone.rs:71:13 |
f20569fa XL |
18 | | |
19 | LL | let _ = vec_ref.to_vec(); | |
5099ac24 | 20 | | ^^^^^^^^^^^^^^^^ help: consider using: `vec_ref.clone()` |
f20569fa XL |
21 | |
22 | error: implicitly cloning a `String` by calling `to_owned` on its dereferenced type | |
c620b35d | 23 | --> tests/ui/implicit_clone.rs:83:13 |
f20569fa XL |
24 | | |
25 | LL | let _ = str.to_owned(); | |
5099ac24 | 26 | | ^^^^^^^^^^^^^^ help: consider using: `str.clone()` |
f20569fa XL |
27 | |
28 | error: implicitly cloning a `Kitten` by calling `to_owned` on its dereferenced type | |
c620b35d | 29 | --> tests/ui/implicit_clone.rs:87:13 |
f20569fa XL |
30 | | |
31 | LL | let _ = kitten.to_owned(); | |
5099ac24 | 32 | | ^^^^^^^^^^^^^^^^^ help: consider using: `kitten.clone()` |
f20569fa XL |
33 | |
34 | error: implicitly cloning a `PathBuf` by calling `to_owned` on its dereferenced type | |
c620b35d | 35 | --> tests/ui/implicit_clone.rs:97:13 |
f20569fa XL |
36 | | |
37 | LL | let _ = pathbuf.to_owned(); | |
5099ac24 | 38 | | ^^^^^^^^^^^^^^^^^^ help: consider using: `pathbuf.clone()` |
f20569fa XL |
39 | |
40 | error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type | |
c620b35d | 41 | --> tests/ui/implicit_clone.rs:98:13 |
f20569fa XL |
42 | | |
43 | LL | let _ = pathbuf.to_path_buf(); | |
5099ac24 | 44 | | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `pathbuf.clone()` |
f20569fa XL |
45 | |
46 | error: implicitly cloning a `OsString` by calling `to_owned` on its dereferenced type | |
c620b35d | 47 | --> tests/ui/implicit_clone.rs:101:13 |
f20569fa XL |
48 | | |
49 | LL | let _ = os_string.to_owned(); | |
5099ac24 | 50 | | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `os_string.clone()` |
f20569fa XL |
51 | |
52 | error: implicitly cloning a `OsString` by calling `to_os_string` on its dereferenced type | |
c620b35d | 53 | --> tests/ui/implicit_clone.rs:102:13 |
f20569fa XL |
54 | | |
55 | LL | let _ = os_string.to_os_string(); | |
5099ac24 | 56 | | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `os_string.clone()` |
f20569fa | 57 | |
5099ac24 | 58 | error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type |
c620b35d | 59 | --> tests/ui/implicit_clone.rs:113:13 |
5099ac24 FG |
60 | | |
61 | LL | let _ = pathbuf_ref.to_path_buf(); | |
62 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(*pathbuf_ref).clone()` | |
63 | ||
64 | error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type | |
c620b35d | 65 | --> tests/ui/implicit_clone.rs:116:13 |
5099ac24 FG |
66 | | |
67 | LL | let _ = pathbuf_ref.to_path_buf(); | |
68 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(**pathbuf_ref).clone()` | |
69 | ||
781aab86 | 70 | error: aborting due to 11 previous errors |
f20569fa | 71 |