]> Untitled Git - bdk/commit
Use assert!(foo) instead of assert_eq!(foo, true)
authorTobin Harding <me@tobin.cc>
Thu, 6 May 2021 04:22:30 +0000 (14:22 +1000)
committerTobin Harding <me@tobin.cc>
Tue, 11 May 2021 00:51:44 +0000 (10:51 +1000)
commit009f68a06a067e638d073337fd86b712248ef6bd
treec5a4afc6fe20b27725a5040f6e35a05c2adde71b
parent12641b9e8fa13cbc5eb34f55d18b423afc505aad
Use assert!(foo) instead of assert_eq!(foo, true)

It is redundant to pass true/false to `assert_eq!` since `assert!`
already asserts true/false.

This may, however, be controversial if someone thinks that

```
    assert_eq!(foo, false);
```

is more clear than

```
    assert!(!foo);
```

Use `assert!` directly instead of `assert_eq!` with true/false argument.
src/wallet/mod.rs
src/wallet/utils.rs