]> Untitled Git - bdk/commit
Use count instead of collect and len
authorTobin Harding <me@tobin.cc>
Wed, 23 Dec 2020 03:07:09 +0000 (14:07 +1100)
committerTobin Harding <me@tobin.cc>
Wed, 24 Feb 2021 02:30:47 +0000 (13:30 +1100)
commit79cab93d49f03f480df03287cdf645dc07bc6c93
tree03cad4cc3c4eefc97dc2aca79b059dead901ad75
parent2afc9faa08a1f8c9c644eb43e9647205808dc7a3
Use count instead of collect and len

Clippy emits warning:

warning: avoid using `collect()` when not needed

As suggested by clippy just use `count` directly on the iterator instead
of `collect` followed by `len`.
src/wallet/tx_builder.rs