fix(cli): eliminate leak of version string
This commit is contained in:
parent
cd2cb661a4
commit
62c53197c4
2 changed files with 1 additions and 1 deletions
|
|
@ -109,6 +109,7 @@ clap = { version = "4.5.41", features = [
|
|||
"derive",
|
||||
"env",
|
||||
"help",
|
||||
"string",
|
||||
"unstable-styles",
|
||||
] }
|
||||
clap_complete = "4.5.55"
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue