From b3ed468c50547d7b32993e3d64b336ef46157dc8 Mon Sep 17 00:00:00 2001 From: Dmitry Demin Date: Wed, 8 Jan 2025 12:49:14 +0100 Subject: [PATCH] Return lifetime in supply info sum test --- src/supply_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/supply_info.rs b/src/supply_info.rs index 29f5cdfcc..6444201ec 100644 --- a/src/supply_info.rs +++ b/src/supply_info.rs @@ -94,7 +94,7 @@ mod tests { AssetBase::derive(&IssuanceValidatingKey::from(&isk), asset_desc) } - fn sum>(supplies: T) -> Option { + fn sum<'a, T: IntoIterator>(supplies: T) -> Option { supplies .into_iter() .map(|supply| supply.amount)