diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-10-28 17:39:17 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-12-05 22:50:21 +0100 |
| commit | 6e0dabd9e209a0fe902313b367df365d6476b875 (patch) | |
| tree | 31e82822a6c080df1bcd060ae136220649fdec56 /src/librustdoc/html/render | |
| parent | abcd094c5174cf25f3de1879c57b4c69c7fe4a94 (diff) | |
| download | rust-6e0dabd9e209a0fe902313b367df365d6476b875.tar.gz rust-6e0dabd9e209a0fe902313b367df365d6476b875.zip | |
Turn `markdown_split_summary_and_content` into a method of `Markdown`
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index b841f01813a..e013829e5e0 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -74,7 +74,6 @@ use crate::html::format::{ }; use crate::html::markdown::{ HeadingOffset, IdMap, Markdown, MarkdownItemInfo, MarkdownSummaryLine, - markdown_split_summary_and_content, }; use crate::html::static_files::SCRAPE_EXAMPLES_HELP_MD; use crate::html::{highlight, sources}; @@ -1941,7 +1940,7 @@ fn render_impl( .impl_item .opt_doc_value() .map(|dox| { - markdown_split_summary_and_content(Markdown { + Markdown { content: &*dox, links: &i.impl_item.links(cx), ids: &mut cx.id_map.borrow_mut(), @@ -1949,7 +1948,8 @@ fn render_impl( edition: cx.shared.edition(), playground: &cx.shared.playground, heading_offset: HeadingOffset::H4, - }) + } + .split_summary_and_content() }) .unwrap_or((None, None)); render_impl_summary( |
