rustdoc: avoid excessive HTML generated in example sources
This commit is contained in:
parent
ba4ae13528
commit
cb3a04b6ef
3 changed files with 9 additions and 12 deletions
|
@ -2899,11 +2899,7 @@ fn render_call_locations(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Ite
|
|||
cx,
|
||||
&cx.root_path(),
|
||||
highlight::DecorationInfo(decoration_info),
|
||||
sources::SourceContext::Embedded {
|
||||
url: &call_data.url,
|
||||
offset: line_min,
|
||||
needs_expansion,
|
||||
},
|
||||
sources::SourceContext::Embedded { offset: line_min, needs_expansion },
|
||||
);
|
||||
write!(w, "</div></div>");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue