diff options
| author | bors <bors@rust-lang.org> | 2024-09-19 15:53:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-19 15:53:31 +0000 |
| commit | 749f80ab051aa0b3724b464130440b0e70a975ac (patch) | |
| tree | 523bda600b62dbe70aa89ca3d7128ae21134d960 /src/librustdoc/html/render/mod.rs | |
| parent | 13a50977964460d8fb5bdf10740de3ac93e6021b (diff) | |
| parent | 1ca3e90db9e98fc55d2446048737169619f5e3b0 (diff) | |
| download | rust-749f80ab051aa0b3724b464130440b0e70a975ac.tar.gz rust-749f80ab051aa0b3724b464130440b0e70a975ac.zip | |
Auto merge of #130069 - GuillaumeGomez:gen-scraped-buttons, r=notriddle
Generate scraped examples buttons in JS Follow-up of https://github.com/rust-lang/rust/pull/129796. To reduce the page size when there are scraped examples, we can generate their buttons in JS since they require JS to work in any case. There should be no changes in display or in functionality. You can test it [here](https://rustdoc.crud.net/imperio/gen-scraped-buttons/doc/scrape_examples/fn.test.html). cc `@willcrichton` r? `@notriddle`
Diffstat (limited to 'src/librustdoc/html/render/mod.rs')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index a402d799504..668bd391348 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -2538,7 +2538,6 @@ fn render_call_locations<W: fmt::Write>(mut w: W, cx: &mut Context<'_>, item: &c &cx.root_path(), highlight::DecorationInfo(decoration_info), sources::SourceContext::Embedded(sources::ScrapedInfo { - needs_prev_next_buttons: line_ranges.len() > 1, needs_expansion, offset: line_min, name: &call_data.display_name, |
