Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
noise64 committed Aug 16, 2024
1 parent bbb00b5 commit f526a31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ fn test_example(example: &Example) -> Result<(), String> {
.map_err(|e| run_failed(e.to_string()))?;

match status.code() {
Some(code) if code == 0 => Ok(()),
Some(0) => Ok(()),
Some(code) => Err(run_failed(format!("non-zero exit code: {}", code))),
None => Err(run_failed("terminated".to_string())),
}
Expand All @@ -151,14 +151,14 @@ fn test_example(example: &Example) -> Result<(), String> {
target_path,
},
)
.map_err(|e| format!("instantiate failed: {}", e.to_string()))?;
.map_err(|e| format!("instantiate failed: {}", e))?;

match &example.language {
GuestLanguage::Go => run("make", vec!["build"]),
GuestLanguage::TypeScript => {
run("npm", vec!["install"])?;
run("npm", vec!["run", "componentize"])
}
other => return Err(format!("build not implemented for {}", other.name())),
other => Err(format!("build not implemented for {}", other.name())),
}
}

0 comments on commit f526a31

Please sign in to comment.