Skip to content

Commit bd4114e

Browse files
committed
Remove unnecessary clone
1 parent 090843a commit bd4114e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/rustc_metadata/src/rmeta/decoder.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,8 +1603,6 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
16031603
old_name
16041604
&& let Ok(rest) = virtual_name.strip_prefix(virtual_dir)
16051605
{
1606-
let virtual_name = virtual_name.clone();
1607-
16081606
// The std library crates are in
16091607
// `$sysroot/lib/rustlib/src/rust/library`, whereas other crates
16101608
// may be in `$sysroot/lib/rustlib/src/rust/` directly. So we

0 commit comments

Comments
 (0)