Skip to content

Commit 5ddb924

Browse files
committed
Remove unnecessary clone
1 parent c7cdeba commit 5ddb924

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/rustc_metadata/src/rmeta/decoder.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1616,8 +1616,6 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
16161616
old_name
16171617
&& let Ok(rest) = virtual_name.strip_prefix(virtual_dir)
16181618
{
1619-
let virtual_name = virtual_name.clone();
1620-
16211619
// The std library crates are in
16221620
// `$sysroot/lib/rustlib/src/rust/library`, whereas other crates
16231621
// may be in `$sysroot/lib/rustlib/src/rust/` directly. So we

0 commit comments

Comments
 (0)