From 60b154ff92e0d4625b551abe7ab7c59e2c9ca47b Mon Sep 17 00:00:00 2001 From: hdevalke <2261239+hdevalke@users.noreply.github.com> Date: Thu, 12 Mar 2020 20:56:34 +0100 Subject: Update crates/rust-analyzer/src/main_loop/handlers.rs use `Vec::new` instead of `Vec::with_capacity(0)` Co-Authored-By: Veetaha --- crates/rust-analyzer/src/main_loop/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') 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( label, bin: "cargo".to_string(), args: check_args, - extra_args: Vec::with_capacity(0), + extra_args: Vec::new(), env: FxHashMap::default(), cwd: workspace_root.map(|root| root.to_string_lossy().to_string()), }); -- cgit v1.2.3