]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #82088 - Nicholas-Baron:shorten_html_render, r=GuillaumeGomez
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 4 Mar 2021 20:56:27 +0000 (21:56 +0100)
committerGitHub <noreply@github.com>
Thu, 4 Mar 2021 20:56:27 +0000 (21:56 +0100)
commit2f28361936f4709043a447d48fd3b8150ead868f
treecbd18bda38c45f7e10b7debc4e5133f2b7569ce3
parent95bbc7ef33ae8436a058a51a2ec8c5c4cc6da8d6
parentafb8220d0af762189168a0f0b4f5c385f5a630e5
Rollup merge of #82088 - Nicholas-Baron:shorten_html_render, r=GuillaumeGomez

Shorten html::render

The `mod.rs` for librustdoc's `html::render` was over 3,000 lines. This PR reduces it to around 2,300 by
1. Moving `Context` and associated `impl`s to a separate file
2. Moving the `print_item` function and its helpers to a separate file
3. Moving `write_shared` and `write_minify` to their own file

Related to issue #60302.
Edit 1: `SharedContext` and related `impl`s is only 72 lines and so will not be moved.