]> Untitled Git - bdk/commit
Use next instead of nth(0)
authorTobin Harding <me@tobin.cc>
Wed, 23 Dec 2020 03:08:54 +0000 (14:08 +1100)
committerTobin Harding <me@tobin.cc>
Wed, 24 Feb 2021 02:30:47 +0000 (13:30 +1100)
commit824b00c9e049b4b9bee95619204730e63b29f5a7
tree92a3127b95140ca38b197521ec4aa6dde1ae3d1f
parent79cab93d49f03f480df03287cdf645dc07bc6c93
Use next instead of nth(0)

As suggested by clippy we can use `.next()` on an iterator instead of
`nth(0)`. Although arguably no clearer, and certainly no worse, it keeps
clippy quiet and a clean lint is a good thing.
src/wallet/mod.rs