Remove redundant _eq

`assert!` already checks a boolean, it is redundant to use `assert_eq!`
and pass in `true`.

Remove redundant usage of `assert_eq!(foo, true)`.
This commit is contained in:
Tobin Harding 2022-03-09 12:42:42 +11:00
parent 3bcc146a44
commit 6a0ec1ac47
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ impl OutPoint {
/// let tx = &block.txdata[0];
///
/// // Coinbase transactions don't have any previous output.
/// assert_eq!(tx.input[0].previous_output.is_null(), true);
/// assert!(tx.input[0].previous_output.is_null());
/// ```
#[inline]
pub fn is_null(&self) -> bool {