diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/crypto/key.rs | 4 | ||||
-rw-r--r-- | ext/crypto/shared.rs | 4 | ||||
-rw-r--r-- | ext/flash/lib.rs | 2 | ||||
-rw-r--r-- | ext/net/ops.rs | 2 | ||||
-rw-r--r-- | ext/url/lib.rs | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/ext/crypto/key.rs b/ext/crypto/key.rs index da73d2191..b8f87189e 100644 --- a/ext/crypto/key.rs +++ b/ext/crypto/key.rs @@ -17,7 +17,7 @@ pub enum KeyType { Secret, } -#[derive(Serialize, Deserialize, Copy, Clone, PartialEq)] +#[derive(Serialize, Deserialize, Copy, Clone, Eq, PartialEq)] pub enum CryptoHash { #[serde(rename = "SHA-1")] Sha1, @@ -98,7 +98,7 @@ impl hkdf::KeyType for HkdfOutput<usize> { } } -#[derive(Serialize, Deserialize, Copy, Clone, Debug, PartialEq)] +#[derive(Serialize, Deserialize, Copy, Clone, Debug, Eq, PartialEq)] #[serde(rename_all = "camelCase")] pub enum KeyUsage { Encrypt, diff --git a/ext/crypto/shared.rs b/ext/crypto/shared.rs index 51fed6509..dec9c6d4a 100644 --- a/ext/crypto/shared.rs +++ b/ext/crypto/shared.rs @@ -46,7 +46,7 @@ pub const ID_SECP384R1_OID: const_oid::ObjectIdentifier = pub const ID_SECP521R1_OID: const_oid::ObjectIdentifier = const_oid::ObjectIdentifier::new_unwrap("1.3.132.0.35"); -#[derive(Serialize, Deserialize, Copy, Clone, PartialEq)] +#[derive(Serialize, Deserialize, Copy, Clone, Eq, PartialEq)] pub enum ShaHash { #[serde(rename = "SHA-1")] Sha1, @@ -58,7 +58,7 @@ pub enum ShaHash { Sha512, } -#[derive(Serialize, Deserialize, Copy, Clone, PartialEq)] +#[derive(Serialize, Deserialize, Copy, Clone, Eq, PartialEq)] pub enum EcNamedCurve { #[serde(rename = "P-256")] P256, diff --git a/ext/flash/lib.rs b/ext/flash/lib.rs index 201753bea..957c011bf 100644 --- a/ext/flash/lib.rs +++ b/ext/flash/lib.rs @@ -86,7 +86,7 @@ pub struct ServerContext { cancel_handle: Rc<CancelHandle>, } -#[derive(Debug, PartialEq)] +#[derive(Debug, Eq, PartialEq)] pub enum ParseStatus { None, Ongoing(usize), 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), diff --git a/ext/url/lib.rs b/ext/url/lib.rs index c6e91e155..ac668207f 100644 --- a/ext/url/lib.rs +++ b/ext/url/lib.rs @@ -128,7 +128,7 @@ fn parse_url( } } -#[derive(PartialEq, Debug)] +#[derive(Eq, PartialEq, Debug)] #[repr(u8)] pub enum UrlSetter { Hash = 0, |