diff --git a/crates/cli-flags/src/lib.rs b/crates/cli-flags/src/lib.rs index 4779a1118b90..38611f94efe0 100644 --- a/crates/cli-flags/src/lib.rs +++ b/crates/cli-flags/src/lib.rs @@ -912,31 +912,3 @@ impl CommonOptions { Ok(()) } } - -impl PartialEq for CommonOptions { - fn eq(&self, other: &CommonOptions) -> bool { - let mut me = self.clone(); - me.configure(); - let mut other = other.clone(); - other.configure(); - let CommonOptions { - opts_raw: _, - codegen_raw: _, - debug_raw: _, - wasm_raw: _, - wasi_raw: _, - configured: _, - - opts, - codegen, - debug, - wasm, - wasi, - } = me; - opts == other.opts - && codegen == other.codegen - && debug == other.debug - && wasm == other.wasm - && wasi == other.wasi - } -} diff --git a/src/commands/compile.rs b/src/commands/compile.rs index 12a0d5dbc652..9c6408c26c70 100644 --- a/src/commands/compile.rs +++ b/src/commands/compile.rs @@ -25,7 +25,7 @@ const AFTER_HELP: &str = wasmtime compile --target x86_64-unknown-linux -Ccranelift-skylake foo.wasm\n"; /// Compiles a WebAssembly module. -#[derive(Parser, PartialEq)] +#[derive(Parser)] #[command( version, after_help = AFTER_HELP, diff --git a/src/commands/explore.rs b/src/commands/explore.rs index d390ec067770..c3e00739cde2 100644 --- a/src/commands/explore.rs +++ b/src/commands/explore.rs @@ -8,7 +8,7 @@ use wasmtime::Strategy; use wasmtime_cli_flags::CommonOptions; /// Explore the compilation of a WebAssembly module to native code. -#[derive(Parser, PartialEq)] +#[derive(Parser)] pub struct ExploreCommand { #[command(flatten)] common: CommonOptions, diff --git a/src/commands/run.rs b/src/commands/run.rs index 15b4b5f9bbe4..a84e88ce277e 100644 --- a/src/commands/run.rs +++ b/src/commands/run.rs @@ -39,7 +39,7 @@ fn parse_preloads(s: &str) -> Result<(String, PathBuf)> { } /// Runs a WebAssembly module -#[derive(Parser, PartialEq)] +#[derive(Parser)] pub struct RunCommand { #[command(flatten)] #[allow(missing_docs)] diff --git a/src/commands/serve.rs b/src/commands/serve.rs index 44bca5ff5612..73b431745415 100644 --- a/src/commands/serve.rs +++ b/src/commands/serve.rs @@ -67,7 +67,7 @@ const DEFAULT_ADDR: std::net::SocketAddr = std::net::SocketAddr::new( ); /// Runs a WebAssembly module -#[derive(Parser, PartialEq)] +#[derive(Parser)] pub struct ServeCommand { #[command(flatten)] run: RunCommon, diff --git a/src/commands/wast.rs b/src/commands/wast.rs index 4d4cf5000e1e..775d18203bab 100644 --- a/src/commands/wast.rs +++ b/src/commands/wast.rs @@ -8,7 +8,7 @@ use wasmtime_cli_flags::CommonOptions; use wasmtime_wast::{SpectestConfig, WastContext}; /// Runs a WebAssembly test script file -#[derive(Parser, PartialEq)] +#[derive(Parser)] pub struct WastCommand { #[command(flatten)] common: CommonOptions, diff --git a/src/common.rs b/src/common.rs index 7e948ddd6881..0f60335ac197 100644 --- a/src/common.rs +++ b/src/common.rs @@ -38,7 +38,7 @@ impl RunTarget { } /// Common command line arguments for run commands. -#[derive(Parser, PartialEq)] +#[derive(Parser)] pub struct RunCommon { #[command(flatten)] pub common: CommonOptions,