Skip to content

Commit 60b154f

Browse files
hdevalkeVeetaha
andauthored
Update crates/rust-analyzer/src/main_loop/handlers.rs
use `Vec::new` instead of `Vec::with_capacity(0)` Co-Authored-By: Veetaha <veetaha2@gmail.com>
1 parent e903fd0 commit 60b154f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/main_loop/handlers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ pub fn handle_runnables(
381381
label,
382382
bin: "cargo".to_string(),
383383
args: check_args,
384-
extra_args: Vec::with_capacity(0),
384+
extra_args: Vec::new(),
385385
env: FxHashMap::default(),
386386
cwd: workspace_root.map(|root| root.to_string_lossy().to_string()),
387387
});

0 commit comments

Comments
 (0)