Skip to content

Commit d206695

Browse files
committed
Fixing no_std for Amount sum iterator
1 parent b2c8a7e commit d206695

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/util/amount.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ impl FromStr for Amount {
523523
}
524524
}
525525

526-
impl ::std::iter::Sum for Amount {
526+
impl ::core::iter::Sum for Amount {
527527
fn sum<I: Iterator<Item=Self>>(iter: I) -> Self {
528528
let sats: u64 = iter.map(|amt| amt.0).sum();
529529
Amount::from_sat(sats)
@@ -855,7 +855,7 @@ impl FromStr for SignedAmount {
855855
}
856856
}
857857

858-
impl ::std::iter::Sum for SignedAmount {
858+
impl ::core::iter::Sum for SignedAmount {
859859
fn sum<I: Iterator<Item=Self>>(iter: I) -> Self {
860860
let sats: i64 = iter.map(|amt| amt.0).sum();
861861
SignedAmount::from_sat(sats)

0 commit comments

Comments
 (0)