Reduce allocations (#31223)

Release Notes:

- N/A
This commit is contained in:
tidely 2025-05-23 14:25:17 +03:00 committed by GitHub
parent f435304209
commit fbc922ad46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 20 deletions

View file

@ -164,13 +164,9 @@ impl DapLocator for CargoLocator {
Ok(DebugRequest::Launch(task::LaunchRequest {
program: executable,
cwd: build_config.cwd.clone(),
cwd: build_config.cwd,
args,
env: build_config
.env
.iter()
.map(|(k, v)| (k.clone(), v.clone()))
.collect(),
env: build_config.env.into_iter().collect(),
}))
}
}