@@ -37,39 +37,40 @@ LL | let _ = kitten.to_owned();
37
37
| ^^^^^^^^^^^^^^^^^ help: consider using: `kitten.clone()`
38
38
39
39
error: 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
41
41
|
42
42
LL | let _ = pathbuf.to_owned();
43
43
| ^^^^^^^^^^^^^^^^^^ help: consider using: `pathbuf.clone()`
44
44
45
45
error: 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
47
47
|
48
48
LL | let _ = pathbuf.to_path_buf();
49
49
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `pathbuf.clone()`
50
50
51
51
error: 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
53
53
|
54
54
LL | let _ = os_string.to_owned();
55
55
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `os_string.clone()`
56
56
57
57
error: 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
59
59
|
60
60
LL | let _ = os_string.to_os_string();
61
61
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `os_string.clone()`
62
62
63
63
error: 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
65
65
|
66
66
LL | let _ = pathbuf_ref.to_path_buf();
67
67
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(*pathbuf_ref).clone()`
68
68
69
69
error: 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
71
71
|
72
72
LL | let _ = pathbuf_ref.to_path_buf();
73
73
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(**pathbuf_ref).clone()`
74
74
75
75
error: aborting due to 12 previous errors
76
+
0 commit comments