Skip to content

Commit e697f20

Browse files
committed
Remove unused param from write_header
1 parent aaff372 commit e697f20

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/librustdoc/html/highlight.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,13 @@ pub(crate) fn render_example_with_highlighting(
5757
extra_classes: &[String],
5858
) -> impl Display {
5959
fmt::from_fn(move |f| {
60-
write_header("rust-example-rendered", None, tooltip, extra_classes).fmt(f)?;
60+
write_header("rust-example-rendered", tooltip, extra_classes).fmt(f)?;
6161
write_code(f, src, None, None, None);
6262
write_footer(playground_button).fmt(f)
6363
})
6464
}
6565

66-
fn write_header(
67-
class: &str,
68-
extra_content: Option<&str>,
69-
tooltip: Option<&Tooltip>,
70-
extra_classes: &[String],
71-
) -> impl Display {
66+
fn write_header(class: &str, tooltip: Option<&Tooltip>, extra_classes: &[String]) -> impl Display {
7267
fmt::from_fn(move |f| {
7368
write!(
7469
f,
@@ -109,10 +104,6 @@ fn write_header(
109104
write!(f, "<a href=\"#\" class=\"tooltip\" title=\"{tooltip}\">ⓘ</a>")?;
110105
}
111106

112-
if let Some(extra) = extra_content {
113-
f.write_str(extra)?;
114-
}
115-
116107
let classes = fmt::from_fn(|f| {
117108
iter::once("rust")
118109
.chain(Some(class).filter(|class| !class.is_empty()))

0 commit comments

Comments
 (0)