Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/install.rs')
| -rw-r--r-- | xtask/src/install.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/xtask/src/install.rs b/xtask/src/install.rs index bbb6d9aeac..53617c6563 100644 --- a/xtask/src/install.rs +++ b/xtask/src/install.rs @@ -108,12 +108,8 @@ fn install_client(sh: &Shell, client_opt: ClientOpt) -> anyhow::Result<()> { }; // Find the appropriate VS Code binary. - let lifetime_extender; let candidates: &[&str] = match client_opt.code_bin.as_deref() { - Some(it) => { - lifetime_extender = [it]; - &lifetime_extender[..] - } + Some(it) => &[it], None => VS_CODES, }; let code = candidates |