2021-03-12 14:30:50 +00:00
|
|
|
error: implicitly cloning a `Vec` by calling `to_owned` on its dereferenced type
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/implicit_clone.rs:65:13
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
|
LL | let _ = vec.to_owned();
|
2022-01-17 12:29:07 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: consider using: `vec.clone()`
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::implicit-clone` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::implicit_clone)]`
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
error: implicitly cloning a `Vec` by calling `to_vec` on its dereferenced type
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/implicit_clone.rs:66:13
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
|
LL | let _ = vec.to_vec();
|
2022-01-17 12:29:07 +00:00
|
|
|
| ^^^^^^^^^^^^ help: consider using: `vec.clone()`
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
error: implicitly cloning a `Vec` by calling `to_vec` on its dereferenced type
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/implicit_clone.rs:71:13
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
|
LL | let _ = vec_ref.to_vec();
|
2022-01-17 12:29:07 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: consider using: `vec_ref.clone()`
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
error: implicitly cloning a `String` by calling `to_owned` on its dereferenced type
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/implicit_clone.rs:83:13
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
|
LL | let _ = str.to_owned();
|
2022-01-17 12:29:07 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: consider using: `str.clone()`
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
error: implicitly cloning a `Kitten` by calling `to_owned` on its dereferenced type
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/implicit_clone.rs:87:13
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
|
LL | let _ = kitten.to_owned();
|
2022-01-17 12:29:07 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: consider using: `kitten.clone()`
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
error: implicitly cloning a `PathBuf` by calling `to_owned` on its dereferenced type
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/implicit_clone.rs:97:13
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
|
LL | let _ = pathbuf.to_owned();
|
2022-01-17 12:29:07 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: consider using: `pathbuf.clone()`
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/implicit_clone.rs:98:13
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
|
LL | let _ = pathbuf.to_path_buf();
|
2022-01-17 12:29:07 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `pathbuf.clone()`
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
error: implicitly cloning a `OsString` by calling `to_owned` on its dereferenced type
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/implicit_clone.rs:101:13
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
|
LL | let _ = os_string.to_owned();
|
2022-01-17 12:29:07 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `os_string.clone()`
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
error: implicitly cloning a `OsString` by calling `to_os_string` on its dereferenced type
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/implicit_clone.rs:102:13
|
2021-03-12 14:30:50 +00:00
|
|
|
|
|
|
|
|
LL | let _ = os_string.to_os_string();
|
2022-01-17 12:29:07 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `os_string.clone()`
|
2021-03-12 14:30:50 +00:00
|
|
|
|
2022-01-17 12:29:07 +00:00
|
|
|
error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/implicit_clone.rs:113:13
|
2022-01-17 12:29:07 +00:00
|
|
|
|
|
|
|
|
LL | let _ = pathbuf_ref.to_path_buf();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(*pathbuf_ref).clone()`
|
|
|
|
|
|
|
|
error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/implicit_clone.rs:116:13
|
2022-01-17 12:29:07 +00:00
|
|
|
|
|
|
|
|
LL | let _ = pathbuf_ref.to_path_buf();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(**pathbuf_ref).clone()`
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
error: aborting due to 11 previous errors
|
2021-03-12 14:30:50 +00:00
|
|
|
|