Skip to content

Commit 1034191

Browse files
committed
cross_toml: Make tests pass
by adding an empty default value for `extra_args` where required.
1 parent bbbc886 commit 1034191

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cross_toml.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ mod tests {
624624
env: CrossEnvConfig {
625625
volumes: Some(vec![p!("VOL1_ARG"), p!("VOL2_ARG")]),
626626
passthrough: Some(vec![p!("VAR1"), p!("VAR2")]),
627+
extra_args: None,
627628
},
628629
xargo: Some(true),
629630
build_std: None,
@@ -662,6 +663,7 @@ mod tests {
662663
env: CrossEnvConfig {
663664
passthrough: Some(vec![p!("VAR1"), p!("VAR2")]),
664665
volumes: Some(vec![p!("VOL1_ARG"), p!("VOL2_ARG")]),
666+
extra_args: None,
665667
},
666668
xargo: Some(false),
667669
build_std: Some(true),
@@ -680,6 +682,7 @@ mod tests {
680682
env: CrossEnvConfig {
681683
passthrough: None,
682684
volumes: None,
685+
extra_args: None,
683686
},
684687
xargo: None,
685688
build_std: None,
@@ -750,6 +753,7 @@ mod tests {
750753
env: CrossEnvConfig {
751754
passthrough: None,
752755
volumes: Some(vec![p!("VOL")]),
756+
extra_args: None,
753757
},
754758
},
755759
);
@@ -760,6 +764,7 @@ mod tests {
760764
env: CrossEnvConfig {
761765
volumes: None,
762766
passthrough: Some(vec![]),
767+
extra_args: None,
763768
},
764769
xargo: Some(true),
765770
build_std: None,
@@ -834,6 +839,7 @@ mod tests {
834839
env: CrossEnvConfig {
835840
passthrough: None,
836841
volumes: None,
842+
extra_args: None,
837843
},
838844
build_std: None,
839845
xargo: Some(true),

0 commit comments

Comments
 (0)