Remove unnecessary cast of integer literal

Clippy emits:

  warning: casting integer literal to `usize` is unnecessary

Remove the unnecessary cast.
This commit is contained in:
Tobin C. Harding 2022-06-07 15:00:00 +10:00
parent 999ac450bb
commit cf8de73169
1 changed files with 1 additions and 1 deletions

View File

@ -1009,7 +1009,7 @@ mod tests {
assert_eq!(txin.script_sig, Script::new());
assert_eq!(txin.sequence, 0xFFFFFFFF);
assert_eq!(txin.previous_output, OutPoint::default());
assert_eq!(txin.witness.len(), 0 as usize);
assert_eq!(txin.witness.len(), 0);
}
#[test]