diff options
author | hdevalke <[email protected]> | 2020-03-12 19:56:34 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-12 19:56:34 +0000 |
commit | 60b154ff92e0d4625b551abe7ab7c59e2c9ca47b (patch) | |
tree | f996653f81bafc27c0bd413f992d6681e91af49e /crates | |
parent | e903fd0d9726dc6343a26ddeb919099fb8e4979e (diff) |
Update crates/rust-analyzer/src/main_loop/handlers.rs
use `Vec::new` instead of `Vec::with_capacity(0)`
Co-Authored-By: Veetaha <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/main_loop/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/main_loop/handlers.rs b/crates/rust-analyzer/src/main_loop/handlers.rs index 044273333..07761f00a 100644 --- a/crates/rust-analyzer/src/main_loop/handlers.rs +++ b/crates/rust-analyzer/src/main_loop/handlers.rs | |||
@@ -381,7 +381,7 @@ pub fn handle_runnables( | |||
381 | label, | 381 | label, |
382 | bin: "cargo".to_string(), | 382 | bin: "cargo".to_string(), |
383 | args: check_args, | 383 | args: check_args, |
384 | extra_args: Vec::with_capacity(0), | 384 | extra_args: Vec::new(), |
385 | env: FxHashMap::default(), | 385 | env: FxHashMap::default(), |
386 | cwd: workspace_root.map(|root| root.to_string_lossy().to_string()), | 386 | cwd: workspace_root.map(|root| root.to_string_lossy().to_string()), |
387 | }); | 387 | }); |