We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2c8a7e commit d206695Copy full SHA for d206695
1 file changed
src/util/amount.rs
@@ -523,7 +523,7 @@ impl FromStr for Amount {
523
}
524
525
526
-impl ::std::iter::Sum for Amount {
+impl ::core::iter::Sum for Amount {
527
fn sum<I: Iterator<Item=Self>>(iter: I) -> Self {
528
let sats: u64 = iter.map(|amt| amt.0).sum();
529
Amount::from_sat(sats)
@@ -855,7 +855,7 @@ impl FromStr for SignedAmount {
855
856
857
858
-impl ::std::iter::Sum for SignedAmount {
+impl ::core::iter::Sum for SignedAmount {
859
860
let sats: i64 = iter.map(|amt| amt.0).sum();
861
SignedAmount::from_sat(sats)
0 commit comments