summaryrefslogtreecommitdiff
path: root/ext/net/ops.rs
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2022-09-19 10:25:03 +0200
committerGitHub <noreply@github.com>2022-09-19 10:25:03 +0200
commitb1b418b81a13ede548273665e83c1bc5a97dffcd (patch)
tree731efb5a2811e1d925e94e9a8a16c220ac98de92 /ext/net/ops.rs
parenta4a894fa1e933e8a678f8ad4f6353837859b02fd (diff)
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.
Diffstat (limited to 'ext/net/ops.rs')
-rw-r--r--ext/net/ops.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/net/ops.rs b/ext/net/ops.rs
index d0f42f189..36786cd86 100644
--- a/ext/net/ops.rs
+++ b/ext/net/ops.rs
@@ -569,7 +569,7 @@ where
}
}
-#[derive(Serialize, PartialEq, Debug)]
+#[derive(Serialize, Eq, PartialEq, Debug)]
#[serde(untagged)]
pub enum DnsReturnRecord {
A(String),