diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-07-05 22:10:18 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-09-03 09:29:20 -0400 |
| commit | 89ae59a360b18e34b4cdbec8e53c9a4e05b7db14 (patch) | |
| tree | e7efccefd3655c722fd87507552c58028604f60a /src | |
| parent | 08deb863bdebfcbbb71c18acf903eca84f1df4e7 (diff) | |
| download | rust-89ae59a360b18e34b4cdbec8e53c9a4e05b7db14.tar.gz rust-89ae59a360b18e34b4cdbec8e53c9a4e05b7db14.zip | |
Remove needless .to_owned() for link
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/passes/collect_intra_doc_links.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/passes/collect_intra_doc_links.rs b/src/librustdoc/passes/collect_intra_doc_links.rs index f497f341e11..b6707a55959 100644 --- a/src/librustdoc/passes/collect_intra_doc_links.rs +++ b/src/librustdoc/passes/collect_intra_doc_links.rs @@ -695,9 +695,9 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> { // This is an anchor to an element of the current page, nothing to do in here! continue; } - (parts[0].to_owned(), Some(parts[1].to_owned())) + (parts[0], Some(parts[1].to_owned())) } else { - (parts[0].to_owned(), None) + (parts[0], None) }; let resolved_self; let mut path_str; |
