1
Fork 0

rustdoc: avoid excessive HTML generated in example sources

This commit is contained in:
Michael Howell 2022-11-12 08:53:12 -07:00
parent ba4ae13528
commit cb3a04b6ef
3 changed files with 9 additions and 12 deletions

View file

@ -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>");