From 1736a801fa02761abd44189c496230bcdd0a25c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Mon, 2 Jan 2023 11:21:27 +0100 Subject: [PATCH] Fix make lint --- lib/cli/src/cli.rs | 10 ++++------ lib/cli/src/commands/create_exe.rs | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/cli/src/cli.rs b/lib/cli/src/cli.rs index 090ce0a6b45..ecb225c38a0 100644 --- a/lib/cli/src/cli.rs +++ b/lib/cli/src/cli.rs @@ -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()), + }, } }; diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 72ce135aea3..17ff7f710d6 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -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}"))?;