From a34dbdcf822875edc7e6405641c5c41ce0d8d5d7 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 21 Nov 2022 11:41:28 -0800 Subject: [PATCH] Apply clippy suggestions --- src/common.rs | 10 +++---- src/contact/info.rs | 2 +- src/domain/info.rs | 4 +-- src/extensions/consolidate.rs | 2 +- src/hello.rs | 56 +++++++++++++++++------------------ src/login.rs | 2 +- src/logout.rs | 2 +- src/response.rs | 22 +++++++------- 8 files changed, 50 insertions(+), 50 deletions(-) diff --git a/src/common.rs b/src/common.rs index d8be54c..e0f0a74 100644 --- a/src/common.rs +++ b/src/common.rs @@ -12,7 +12,7 @@ pub(crate) const EPP_XMLNS: &str = "urn:ietf:params:xml:ns:epp-1.0"; /// Wraps String for easier serialization to and from values that are inner text /// for tags rather than attributes -#[derive(Default, Serialize, Deserialize, Debug, PartialEq, Clone)] +#[derive(Default, Serialize, Deserialize, Debug, Eq, PartialEq, Clone)] pub struct StringValue<'a>(Cow<'a, str>); impl Deref for StringValue<'_> { @@ -47,7 +47,7 @@ impl From for StringValue<'static> { } } -#[derive(Serialize, Deserialize, Debug, PartialEq)] +#[derive(Serialize, Deserialize, Debug, Eq, PartialEq)] /// An empty placeholder tag. To be refactored to something more compliant later. pub struct NoExtension; @@ -123,7 +123,7 @@ impl From for CheckResponse { } /// The