@@ -37,39 +37,40 @@ LL | let _ = kitten.to_owned();
3737 | ^^^^^^^^^^^^^^^^^ help: consider using: `kitten.clone()`
3838
3939error: implicitly cloning a `PathBuf` by calling `to_owned` on its dereferenced type
40- --> $DIR/implicit_clone.rs:97 :13
40+ --> $DIR/implicit_clone.rs:98 :13
4141 |
4242LL | let _ = pathbuf.to_owned();
4343 | ^^^^^^^^^^^^^^^^^^ help: consider using: `pathbuf.clone()`
4444
4545error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type
46- --> $DIR/implicit_clone.rs:98 :13
46+ --> $DIR/implicit_clone.rs:99 :13
4747 |
4848LL | let _ = pathbuf.to_path_buf();
4949 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `pathbuf.clone()`
5050
5151error: implicitly cloning a `OsString` by calling `to_owned` on its dereferenced type
52- --> $DIR/implicit_clone.rs:101 :13
52+ --> $DIR/implicit_clone.rs:102 :13
5353 |
5454LL | let _ = os_string.to_owned();
5555 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `os_string.clone()`
5656
5757error: implicitly cloning a `OsString` by calling `to_os_string` on its dereferenced type
58- --> $DIR/implicit_clone.rs:102 :13
58+ --> $DIR/implicit_clone.rs:103 :13
5959 |
6060LL | let _ = os_string.to_os_string();
6161 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `os_string.clone()`
6262
6363error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type
64- --> $DIR/implicit_clone.rs:113 :13
64+ --> $DIR/implicit_clone.rs:114 :13
6565 |
6666LL | let _ = pathbuf_ref.to_path_buf();
6767 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(*pathbuf_ref).clone()`
6868
6969error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type
70- --> $DIR/implicit_clone.rs:116 :13
70+ --> $DIR/implicit_clone.rs:117 :13
7171 |
7272LL | let _ = pathbuf_ref.to_path_buf();
7373 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(**pathbuf_ref).clone()`
7474
7575error: aborting due to 12 previous errors
76+
0 commit comments