summaryrefslogtreecommitdiff
path: root/cli/cache/check.rs
diff options
context:
space:
mode:
authorGeert-Jan Zwiers <geertjanzwiers@protonmail.com>2023-01-27 16:16:38 +0100
committerGitHub <noreply@github.com>2023-01-27 20:46:38 +0530
commit1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (patch)
tree71f981c66aa6bf012606ae0654b2dd6c8f0ef563 /cli/cache/check.rs
parent7f38f30a5c0eb06c5b85d1c7ac26a480c210aab6 (diff)
chore(cli/cache): fewer string allocations (#17549)
Diffstat (limited to 'cli/cache/check.rs')
-rw-r--r--cli/cache/check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/cache/check.rs b/cli/cache/check.rs
index 2d9acdf51..86fb07577 100644
--- a/cli/cache/check.rs
+++ b/cli/cache/check.rs
@@ -192,7 +192,7 @@ fn create_tables(
|row| row.get(0),
)
.ok();
- if data_cli_version != Some(cli_version.to_string()) {
+ if data_cli_version.as_deref() != Some(&cli_version) {
conn.execute("DELETE FROM checkcache", params![])?;
conn.execute("DELETE FROM tsbuildinfo", params![])?;
let mut stmt = conn