Skip to content

Commit 7fbd14f

Browse files
committed
fixes tests
1 parent 8210f39 commit 7fbd14f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/ui/implicit_clone.stderr

+7-6
Original file line numberDiff line numberDiff line change
@@ -37,39 +37,40 @@ LL | let _ = kitten.to_owned();
3737
| ^^^^^^^^^^^^^^^^^ help: consider using: `kitten.clone()`
3838

3939
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
4141
|
4242
LL | let _ = pathbuf.to_owned();
4343
| ^^^^^^^^^^^^^^^^^^ help: consider using: `pathbuf.clone()`
4444

4545
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
4747
|
4848
LL | let _ = pathbuf.to_path_buf();
4949
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `pathbuf.clone()`
5050

5151
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
5353
|
5454
LL | let _ = os_string.to_owned();
5555
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `os_string.clone()`
5656

5757
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
5959
|
6060
LL | let _ = os_string.to_os_string();
6161
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `os_string.clone()`
6262

6363
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
6565
|
6666
LL | let _ = pathbuf_ref.to_path_buf();
6767
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(*pathbuf_ref).clone()`
6868

6969
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
7171
|
7272
LL | let _ = pathbuf_ref.to_path_buf();
7373
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(**pathbuf_ref).clone()`
7474

7575
error: aborting due to 12 previous errors
76+

0 commit comments

Comments
 (0)