Skip to content

Commit

Permalink
Return lifetime in supply info sum test
Browse files Browse the repository at this point in the history
  • Loading branch information
dmidem committed Jan 8, 2025
1 parent 1c7ef6c commit b3ed468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/supply_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ mod tests {
AssetBase::derive(&IssuanceValidatingKey::from(&isk), asset_desc)
}

fn sum<T: IntoIterator<Item = &AssetSupply>>(supplies: T) -> Option<NoteValue> {
fn sum<'a, T: IntoIterator<Item = &'a AssetSupply>>(supplies: T) -> Option<NoteValue> {
supplies
.into_iter()
.map(|supply| supply.amount)
Expand Down

0 comments on commit b3ed468

Please sign in to comment.