Fix make lint

This commit is contained in:
Felix Schütt
2023-01-02 11:21:27 +01:00
parent b2d4e975e3
commit 1736a801fa
2 changed files with 5 additions and 7 deletions

View File

@@ -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() {
Err(e) => match e.kind() {
ErrorKind::DisplayVersion | ErrorKind::DisplayHelp => e.exit(),
_ => WasmerCLIOptions::Run(Run::parse()),
}
}
},
}
};

View File

@@ -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}"))?;