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:
parent
3bcc146a44
commit
6a0ec1ac47
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue