From cf8de73169a2c6d782ebfc974614af24d52f2161 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 7 Jun 2022 15:00:00 +1000 Subject: [PATCH] Remove unnecessary cast of integer literal Clippy emits: warning: casting integer literal to `usize` is unnecessary Remove the unnecessary cast. --- src/blockdata/transaction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockdata/transaction.rs b/src/blockdata/transaction.rs index 581bff1e..42f1565a 100644 --- a/src/blockdata/transaction.rs +++ b/src/blockdata/transaction.rs @@ -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]