diff --git a/Cargo.toml b/Cargo.toml index 2c453a71..655d8c26 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ fpe = "0.5" group = "0.11" halo2 = "0.0" lazy_static = "1" -memuse = { version = "0.1", features = ["nonempty"] } +memuse = { version = "0.2", features = ["nonempty"] } pasta_curves = "0.2" proptest = { version = "1.0.0", optional = true } rand = "0.8" diff --git a/src/bundle.rs b/src/bundle.rs index d022bbfd..d095e8da 100644 --- a/src/bundle.rs +++ b/src/bundle.rs @@ -5,7 +5,7 @@ pub mod commitments; use std::io; use blake2b_simd::Hash as Blake2bHash; -use memuse::{DynamicUsage, NoDynamicUsage}; +use memuse::DynamicUsage; use nonempty::NonEmpty; use zcash_note_encryption::try_note_decryption; @@ -134,7 +134,17 @@ impl Action { } } -impl NoDynamicUsage for Action> {} +impl DynamicUsage for Action> { + #[inline(always)] + fn dynamic_usage(&self) -> usize { + 0 + } + + #[inline(always)] + fn dynamic_usage_bounds(&self) -> (usize, Option) { + (0, Some(0)) + } +} /// Orchard-specific flags. #[derive(Clone, Copy, Debug)]