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/file_fetcher.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/file_fetcher.rs')
-rw-r--r-- | cli/file_fetcher.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs index b1c601b9a..75c2c608f 100644 --- a/cli/file_fetcher.rs +++ b/cli/file_fetcher.rs @@ -1746,15 +1746,8 @@ mod tests { fn create_test_client() -> HttpClient { HttpClient::from_client( - create_http_client( - "test_client".to_string(), - None, - vec![], - None, - None, - None, - ) - .unwrap(), + create_http_client("test_client", None, vec![], None, None, None) + .unwrap(), ) } |