Skip to content

Commit 89ae59a

Browse files
committed
Remove needless .to_owned() for link
1 parent 08deb86 commit 89ae59a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/passes/collect_intra_doc_links.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,9 +695,9 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
695695
// This is an anchor to an element of the current page, nothing to do in here!
696696
continue;
697697
}
698-
(parts[0].to_owned(), Some(parts[1].to_owned()))
698+
(parts[0], Some(parts[1].to_owned()))
699699
} else {
700-
(parts[0].to_owned(), None)
700+
(parts[0], None)
701701
};
702702
let resolved_self;
703703
let mut path_str;

0 commit comments

Comments
 (0)