We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a975e9 commit 1d1b344Copy full SHA for 1d1b344
src/cargo/ops/cargo_compile.rs
@@ -475,13 +475,11 @@ pub fn create_bcx<'a, 'cfg>(
475
extra_args = Some(args);
476
}
477
478
- if let Some(mut args) = extra_args {
479
- match extra_compiler_args.get_mut(&unit) {
480
- None => {
481
- extra_compiler_args.insert(unit.clone(), args);
482
- }
483
- Some(existing) => existing.append(&mut args),
484
+ if let Some(args) = extra_args {
+ extra_compiler_args
+ .entry(unit.clone())
+ .or_default()
+ .extend(args);
485
486
487
0 commit comments