Skip to content

Commit 8271e9e

Browse files
committed
Fix clippy warning (unwrap_or followed by function call)
1 parent 2cb9a97 commit 8271e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ struct ConfigBuilder {
128128
impl Into<Config> for ConfigBuilder {
129129
fn into(self) -> Config {
130130
Config {
131-
build_command: self.build_command.unwrap_or(vec!["build".into()]),
131+
build_command: self.build_command.unwrap_or_else(|| vec!["build".into()]),
132132
run_command: self.run_command.unwrap_or_else(|| {
133133
vec![
134134
"qemu-system-x86_64".into(),

0 commit comments

Comments
 (0)