Remove use of `IntoIterator::into_iter`
This commit is contained in:
parent
a93f5945ab
commit
d7e2e2f7c1
|
@ -266,7 +266,8 @@ impl<'a, P: consensus::Parameters, R: RngCore> Builder<'a, P, R> {
|
||||||
.ok_or(Error::InvalidAmount)?,
|
.ok_or(Error::InvalidAmount)?,
|
||||||
];
|
];
|
||||||
|
|
||||||
IntoIterator::into_iter(&value_balances)
|
value_balances
|
||||||
|
.into_iter()
|
||||||
.sum::<Option<_>>()
|
.sum::<Option<_>>()
|
||||||
.ok_or(Error::InvalidAmount)
|
.ok_or(Error::InvalidAmount)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue