Skip to content

Commit 07f80cc

Browse files
committed
Remove unnecessary cast
Clippy emits warnings of form: warning: casting to the same type is unnecessary Remove the unnecessary casts.
1 parent 4922750 commit 07f80cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub fn height_to_flags(height: u32) -> u32 {
118118
flag |= VERIFY_NULLDUMMY | VERIFY_WITNESS
119119
}
120120

121-
flag as u32
121+
flag
122122
}
123123

124124
/// Returns `libbitcoinconsensus` version.
@@ -185,7 +185,7 @@ pub fn verify_with_flags(
185185
let ret = bitcoinconsensus_verify_script_with_amount(
186186
spent_output_script.as_ptr(),
187187
spent_output_script.len() as c_uint,
188-
amount as u64,
188+
amount,
189189
spending_transaction.as_ptr(),
190190
spending_transaction.len() as c_uint,
191191
input_index as c_uint,

0 commit comments

Comments
 (0)