Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8271e9e

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/config.rs

Copy file name to clipboardExpand all lines: src/config.rs
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.