Skip to content

Commit a43ef3b

Browse files
committed
Inline constant format arg
1 parent e367d0c commit a43ef3b

File tree

1 file changed

+1
-5
lines changed
  • src/librustdoc/html/render

1 file changed

+1
-5
lines changed

src/librustdoc/html/render/mod.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1211,11 +1211,7 @@ fn write_minify(
12111211

12121212
fn write_srclink(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer) {
12131213
if let Some(l) = cx.src_href(item) {
1214-
write!(
1215-
buf,
1216-
"<a class=\"srclink\" href=\"{}\" title=\"{}\">[src]</a>",
1217-
l, "goto source code"
1218-
)
1214+
write!(buf, "<a class=\"srclink\" href=\"{}\" title=\"goto source code\">[src]</a>", l)
12191215
}
12201216
}
12211217

0 commit comments

Comments
 (0)