diff --git a/src/plan.rs b/src/plan.rs index 1e93274b1..96ba39313 100644 --- a/src/plan.rs +++ b/src/plan.rs @@ -108,7 +108,7 @@ pub trait AssetProvider { /// Wrapper around [`Assets`] that logs every query and value returned #[cfg(feature = "std")] -pub struct LoggerAssetProvider(Assets); +pub struct LoggerAssetProvider<'a>(pub &'a Assets); #[cfg(feature = "std")] macro_rules! impl_log_method { @@ -123,7 +123,7 @@ macro_rules! impl_log_method { } #[cfg(feature = "std")] -impl AssetProvider for LoggerAssetProvider { +impl<'a> AssetProvider for LoggerAssetProvider<'a> { impl_log_method!(provider_lookup_ecdsa_sig, pk: &DefiniteDescriptorKey, -> bool); impl_log_method!(provider_lookup_tap_key_spend_sig, pk: &DefiniteDescriptorKey, -> Option); impl_log_method!(provider_lookup_tap_leaf_script_sig, pk: &DefiniteDescriptorKey, leaf_hash: &TapLeafHash, -> Option);