diff options
| author | Mukund Lakshman <yaymukund@gmail.com> | 2021-10-04 21:08:58 -0400 |
|---|---|---|
| committer | Mukund Lakshman <yaymukund@gmail.com> | 2021-10-04 22:28:02 -0400 |
| commit | 6518a0a8b9570b6d347a3c7b2c9b95e66cbbd013 (patch) | |
| tree | 88cc28bc7d68239f61f22f851813b84f2e90666d /src/librustdoc/markdown.rs | |
| parent | 4a6aa6e4063a8ecd9810c04a5dae9e8ff2f664d6 (diff) | |
| download | rust-6518a0a8b9570b6d347a3c7b2c9b95e66cbbd013.tar.gz rust-6518a0a8b9570b6d347a3c7b2c9b95e66cbbd013.zip | |
Change `Markdown(...)` to `Markdown { ... }`
Diffstat (limited to 'src/librustdoc/markdown.rs')
| -rw-r--r-- | src/librustdoc/markdown.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/librustdoc/markdown.rs b/src/librustdoc/markdown.rs index 82e6231782c..962712f5b91 100644 --- a/src/librustdoc/markdown.rs +++ b/src/librustdoc/markdown.rs @@ -70,7 +70,16 @@ crate fn render<P: AsRef<Path>>( let text = if !options.markdown_no_toc { MarkdownWithToc(text, &mut ids, error_codes, edition, &playground).into_string() } else { - Markdown(text, &[], &mut ids, error_codes, edition, &playground, 0).into_string() + Markdown { + content: text, + links: &[], + ids: &mut ids, + error_codes, + edition, + playground: &playground, + heading_level: 0, + } + .into_string() }; let err = write!( |
