Skip to content

Commit 35dd77a

Browse files
committed
Remove unnecessary cast of integer literal
Clippy emits: warning: casting integer literal to `usize` is unnecessary Remove the unnecessary cast.
1 parent 321cb85 commit 35dd77a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blockdata/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ mod tests {
10091009
assert_eq!(txin.script_sig, Script::new());
10101010
assert_eq!(txin.sequence, 0xFFFFFFFF);
10111011
assert_eq!(txin.previous_output, OutPoint::default());
1012-
assert_eq!(txin.witness.len(), 0 as usize);
1012+
assert_eq!(txin.witness.len(), 0);
10131013
}
10141014

10151015
#[test]

0 commit comments

Comments
 (0)