diff options
| author | Lzu Tao <taolzu@gmail.com> | 2020-07-15 10:55:40 +0000 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2020-07-15 10:55:40 +0000 |
| commit | 0f4e4a022c0aab65e40a4b60ea7984075891826d (patch) | |
| tree | 63677f2f023d191c0acddcc81446acb0be169fc4 /src/librustdoc/markdown.rs | |
| parent | 567ad7455d5f25f6b38d2fded1cb621e0c34a48b (diff) | |
| download | rust-0f4e4a022c0aab65e40a4b60ea7984075891826d.tar.gz rust-0f4e4a022c0aab65e40a4b60ea7984075891826d.zip | |
rustdoc: Rename internal API fns to `into_string`
to avoid surprising listed in API guidelines.
Diffstat (limited to 'src/librustdoc/markdown.rs')
| -rw-r--r-- | src/librustdoc/markdown.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/markdown.rs b/src/librustdoc/markdown.rs index e0753bcd70f..89d184e35cb 100644 --- a/src/librustdoc/markdown.rs +++ b/src/librustdoc/markdown.rs @@ -68,9 +68,9 @@ pub fn render<P: AsRef<Path>>( let mut ids = IdMap::new(); let error_codes = ErrorCodes::from(UnstableFeatures::from_environment().is_nightly_build()); let text = if !options.markdown_no_toc { - MarkdownWithToc(text, &mut ids, error_codes, edition, &playground).to_string() + MarkdownWithToc(text, &mut ids, error_codes, edition, &playground).into_string() } else { - Markdown(text, &[], &mut ids, error_codes, edition, &playground).to_string() + Markdown(text, &[], &mut ids, error_codes, edition, &playground).into_string() }; let err = write!( |
