Skip to content

Commit fb382df

Browse files
committed
Rollup merge of #33509 - birkenfeld:issue-30219, r=alexcrichton
rustdoc: fix emitting duplicate implementors in .js files The collect() fn checks for double quotes; use them here as well. Fixes: #30219
2 parents 6436b60 + ba17bd0 commit fb382df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ fn write_shared(cx: &Context,
783783
try_err!(write!(&mut f, "{}", *implementor), &mydst);
784784
}
785785

786-
try_err!(write!(&mut f, r"implementors['{}'] = [", krate.name), &mydst);
786+
try_err!(write!(&mut f, r#"implementors["{}"] = ["#, krate.name), &mydst);
787787
for imp in imps {
788788
// If the trait and implementation are in the same crate, then
789789
// there's no need to emit information about it (there's inlining

0 commit comments

Comments
 (0)