From 4c9b2096dc47d26d1d4632f634738f6938508962 Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Tue, 18 Oct 2022 12:38:41 -0600 Subject: [PATCH] Fix beta clippy complaints. --- CHANGELOG.md | 3 +++ src/value.rs | 2 +- src/zip32.rs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b164e00..c9637be5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ and this project adheres to Rust's notion of - `impl memuse::DynamicUsage for OrchardDomain` - `orchard::builder::SpendInfo::new` - `orchard::circuit::Circuit::from_action_context` +- impls of `Eq` for: + - `orchard::zip32::ChildIndex` + - `orchard::value::ValueSum` ### Changed - Migrated to `zcash_note_encryption 0.2`. diff --git a/src/value.rs b/src/value.rs index 71727577..8b53fe16 100644 --- a/src/value.rs +++ b/src/value.rs @@ -144,7 +144,7 @@ pub(crate) enum Sign { } /// A sum of Orchard note values. -#[derive(Clone, Copy, Debug, Default, PartialEq)] +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] pub struct ValueSum(i128); impl ValueSum { diff --git a/src/zip32.rs b/src/zip32.rs index ab0d30b3..3ba8bd57 100644 --- a/src/zip32.rs +++ b/src/zip32.rs @@ -65,7 +65,7 @@ impl FvkTag { } /// A hardened child index for a derived key. -#[derive(Copy, Clone, Debug, PartialEq)] +#[derive(Copy, Clone, Debug, PartialEq, Eq)] pub struct ChildIndex(u32); impl TryFrom for ChildIndex {