From b1b418b81a13ede548273665e83c1bc5a97dffcd Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 19 Sep 2022 10:25:03 +0200 Subject: chore: fix clippy warnings (#15944) Stop allowing clippy::derive-partial-eq-without-eq and fix warnings about deriving PartialEq without also deriving Eq. In one case I removed the PartialEq because it a) wasn't necessary, and b) sketchy because it was comparing floating point numbers. IMO, that's a good argument for enforcing the lint rule, because it would most likely have been caught during review if it had been enabled. --- runtime/ops/process.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/ops') diff --git a/runtime/ops/process.rs b/runtime/ops/process.rs index e5650e305..e4b614030 100644 --- a/runtime/ops/process.rs +++ b/runtime/ops/process.rs @@ -32,7 +32,7 @@ pub fn init() -> Extension { .build() } -#[derive(Copy, Clone, PartialEq, Deserialize)] +#[derive(Copy, Clone, Eq, PartialEq, Deserialize)] #[serde(rename_all = "camelCase")] pub enum Stdio { Inherit, @@ -50,7 +50,7 @@ impl Stdio { } } -#[derive(Copy, Clone, PartialEq)] +#[derive(Copy, Clone, Eq, PartialEq)] pub enum StdioOrRid { Stdio(Stdio), Rid(ResourceId), -- cgit v1.2.3