mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 20:58:28 +00:00
Fix make lint
This commit is contained in:
@@ -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()),
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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}"))?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user