]> Untitled Git - bdk/commit
Use default pattern
authorTobin Harding <me@tobin.cc>
Wed, 23 Dec 2020 03:16:43 +0000 (14:16 +1100)
committerTobin Harding <me@tobin.cc>
Wed, 24 Feb 2021 02:30:47 +0000 (13:30 +1100)
commit35184e6908b935c4c0fd2ee3be95f63af3515a00
tree8ae0f50a4d45461f3b63ac565c7ca7217dc35ed8
parent824b00c9e049b4b9bee95619204730e63b29f5a7
Use default pattern

Clippy emits warning:

  warning: field assignment outside of initializer for an instance
  created with Default::default()

Do as suggested by clippy and use the default init pattern.

```
    let foo = Foo {
     bar: ...,
        Default::default()
    }
```
src/wallet/mod.rs