diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-23 23:27:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 23:27:58 +0100 |
commit | 275dee60e71225a9c6c4b3b4ea7ffe4c6ecb4d87 (patch) | |
tree | 13ed3ab7e825a81085e8dcc5efeee417416b86cf /cli/cache/node.rs | |
parent | edab8f2fd48efddc19eb0032955fee4b5dbf76e6 (diff) |
refactor: make version and user_agent &'static str (#18400)
These caused a bunch of unnecessary allocations on each startup.
Diffstat (limited to 'cli/cache/node.rs')
-rw-r--r-- | cli/cache/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/cache/node.rs b/cli/cache/node.rs index e010c0dcd..19ac45d6b 100644 --- a/cli/cache/node.rs +++ b/cli/cache/node.rs @@ -102,7 +102,7 @@ impl NodeAnalysisCache { None => { let maybe_inner = match NodeAnalysisCacheInner::new( self.db_file_path.as_deref(), - crate::version::deno(), + crate::version::deno().to_string(), ) { Ok(cache) => Some(cache), Err(err) => { |