mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
refactor: make version and user_agent &'static str (#18400)
These caused a bunch of unnecessary allocations on each startup.
This commit is contained in:
parent
edab8f2fd4
commit
275dee60e7
14 changed files with 91 additions and 79 deletions
|
@ -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(),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue