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.
unwrap_or
1 parent 2cb9a97 commit 8271e9eCopy full SHA for 8271e9e
src/config.rs
@@ -128,7 +128,7 @@ struct ConfigBuilder {
128
impl Into<Config> for ConfigBuilder {
129
fn into(self) -> Config {
130
Config {
131
- build_command: self.build_command.unwrap_or(vec!["build".into()]),
+ build_command: self.build_command.unwrap_or_else(|| vec!["build".into()]),
132
run_command: self.run_command.unwrap_or_else(|| {
133
vec![
134
"qemu-system-x86_64".into(),
0 commit comments