Fix beta clippy complaints.

This commit is contained in:
Kris Nuttycombe 2022-10-18 12:38:41 -06:00
parent 7080c37532
commit 4c9b2096dc
3 changed files with 5 additions and 2 deletions

View File

@ -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`.

View File

@ -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 {

View File

@ -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<u32> for ChildIndex {