fix(cli): eliminate leak of version string

This commit is contained in:
Will Lillis 2025-07-29 01:19:21 -04:00
parent cd2cb661a4
commit 62c53197c4
2 changed files with 1 additions and 1 deletions

View file

@ -109,6 +109,7 @@ clap = { version = "4.5.41", features = [
"derive",
"env",
"help",
"string",
"unstable-styles",
] }
clap_complete = "4.5.55"

View file

@ -1746,7 +1746,6 @@ fn run() -> Result<()> {
|| BUILD_VERSION.to_string(),
|build_sha| format!("{BUILD_VERSION} ({build_sha})"),
);
let version: &'static str = Box::leak(version.into_boxed_str());
let cli = Command::new("tree-sitter")
.help_template(