Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--.cargo/config.toml1
-rw-r--r--xtask/src/dist.rs7
2 files changed, 3 insertions, 5 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 070560dfbc..0193a9566e 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -4,6 +4,7 @@ tq = "test -- -q"
qt = "tq"
lint = "clippy --all-targets -- --cap-lints warn"
codegen = "run --package xtask --bin xtask -- codegen"
+dist = "run --package xtask --bin xtask -- dist"
[target.x86_64-pc-windows-msvc]
linker = "rust-lld"
diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs
index d6a1053270..742cf7f609 100644
--- a/xtask/src/dist.rs
+++ b/xtask/src/dist.rs
@@ -70,11 +70,8 @@ fn dist_client(
&format!(r#""version": "{version}""#),
)
.replace(r#""releaseTag": null"#, &format!(r#""releaseTag": "{release_tag}""#))
- .replace(
- " {\n \"title\": \"$generated-start\"\n },\n",
- "",
- )
- .replace(" { \"title\": \"$generated-end\" }\n", "")
+ .replace(r#""title": "$generated-start""#, "")
+ .replace(r#""title": "$generated-end""#, "")
.replace(r#""enabledApiProposals": [],"#, r#""#);
patch.commit(sh)?;