Skip to content

Commit

Permalink
Merge pull request #3630 from wasmerio/fix_linter
Browse files Browse the repository at this point in the history
Fix linter
  • Loading branch information
syrusakbary authored Feb 28, 2023
2 parents b86021f + 2a4b9a7 commit 5bad5e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cli/src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ impl RunWithPathBuf {

if let Err(err) = invoke_res {
if let Some(coredump_path) = self.coredump_on_trap.as_ref() {
let source_name = self.path.to_str().unwrap_or_else(|| "unknown");
if let Err(coredump_err) = generate_coredump(&err, &source_name, &coredump_path) {
let source_name = self.path.to_str().unwrap_or("unknown");
if let Err(coredump_err) = generate_coredump(&err, source_name, coredump_path) {
eprintln!("warning: coredump failed to generate: {}", coredump_err);
Err(err)
} else {
Expand Down

0 comments on commit 5bad5e1

Please sign in to comment.