Skip to content

Commit

Permalink
Fix clippy warning (unwrap_or followed by function call)
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed Jul 17, 2020
1 parent 2cb9a97 commit 8271e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ struct ConfigBuilder {
impl Into<Config> for ConfigBuilder {
fn into(self) -> Config {
Config {
build_command: self.build_command.unwrap_or(vec!["build".into()]),
build_command: self.build_command.unwrap_or_else(|| vec!["build".into()]),
run_command: self.run_command.unwrap_or_else(|| {
vec![
"qemu-system-x86_64".into(),
Expand Down

0 comments on commit 8271e9e

Please sign in to comment.