Skip to content

Commit d47848e

Browse files
authored
Update dist.rs
1 parent adb7de2 commit d47848e

File tree

1 file changed

+5
-2
lines changed
  • src/tools/rust-analyzer/xtask/src

1 file changed

+5
-2
lines changed

src/tools/rust-analyzer/xtask/src/dist.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@ fn dist_client(
7070
&format!(r#""version": "{version}""#),
7171
)
7272
.replace(r#""releaseTag": null"#, &format!(r#""releaseTag": "{release_tag}""#))
73-
.replace(r#""$generated-start": {},"#, "")
74-
.replace(",\n \"$generated-end\": {}", "")
73+
.replace(
74+
" {\n \"title\": \"$generated-start\"\n },\n",
75+
"",
76+
)
77+
.replace(" { \"title\": \"$generated-end\" }\n", "")
7578
.replace(r#""enabledApiProposals": [],"#, r#""#);
7679
patch.commit(sh)?;
7780

0 commit comments

Comments
 (0)