diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-10-29 12:23:10 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-10-29 12:23:10 +0200 |
| commit | 4fac361ea3faead329e22b2874f05999ae2c5dc2 (patch) | |
| tree | a5122b0d7e80e03d54dd934100efaf0032b3fdbe /src/librustdoc/html/render | |
| parent | 607878d069267e1402ad792c9331b426e4c6d0f9 (diff) | |
| download | rust-4fac361ea3faead329e22b2874f05999ae2c5dc2.tar.gz rust-4fac361ea3faead329e22b2874f05999ae2c5dc2.zip | |
Fix z-indexes of code example feature and cleanup its CSS
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 96c57c8c85d..27dea8ec0b3 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -2869,10 +2869,6 @@ fn render_call_locations(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Ite write!(w, r#"<span class="prev">≺</span> <span class="next">≻</span>"#); } - if needs_expansion { - write!(w, r#"<span class="expand">↕</span>"#); - } - // Look for the example file in the source map if it exists, otherwise return a dummy span let file_span = (|| { let source_map = tcx.sess.source_map(); @@ -2906,7 +2902,7 @@ fn render_call_locations(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Ite cx, &root_path, highlight::DecorationInfo(decoration_info), - sources::SourceContext::Embedded { offset: line_min }, + sources::SourceContext::Embedded { offset: line_min, needs_expansion }, ); write!(w, "</div></div>"); |
