Skip to content

Commit

Permalink
Fix make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Jan 2, 2023
1 parent b2d4e97 commit 1736a80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions lib/cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,10 @@ fn wasmer_main_inner() -> Result<(), anyhow::Error> {
} else {
match WasmerCLIOptions::try_parse_from(args.iter()) {
Ok(o) => o,
Err(e) => {
match e.kind() {
ErrorKind::DisplayVersion | ErrorKind::DisplayHelp => e.exit(),
_ => WasmerCLIOptions::Run(Run::parse()),
}
}
Err(e) => match e.kind() {
ErrorKind::DisplayVersion | ErrorKind::DisplayHelp => e.exit(),
_ => WasmerCLIOptions::Run(Run::parse()),
},
}
};

Expand Down
2 changes: 1 addition & 1 deletion lib/cli/src/commands/create_exe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,7 @@ pub(super) mod utils {
&version[..]
};

let version_slice = String::from_utf8_lossy(&version_slice);
let version_slice = String::from_utf8_lossy(version_slice);
let version_semver = semver::Version::parse(&version_slice)
.map_err(|e| anyhow!("could not parse zig version: {version_slice}: {e}"))?;

Expand Down

0 comments on commit 1736a80

Please sign in to comment.