Remove unnecessary cast

A recent update to clippy introduced a new class of warning.

Clippy emits:

 warning: casting to the same type is unnecessary (`usize` -> `usize`)

As suggested remove the unnecessary cast.
This commit is contained in:
Tobin C. Harding 2022-12-16 11:02:02 +11:00
parent 48ce60d507
commit b3cd414a5a
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ impl Signature {
ffi::secp256k1_context_no_precomp,
&mut ret,
data.as_c_ptr(),
data.len() as usize,
data.len(),
) == 1
{
Ok(Signature(ret))
@ -105,7 +105,7 @@ impl Signature {
ffi::secp256k1_context_no_precomp,
&mut ret,
data.as_c_ptr(),
data.len() as usize,
data.len(),
) == 1
{
Ok(Signature(ret))

View File

@ -486,7 +486,7 @@ impl PublicKey {
ffi::secp256k1_context_no_precomp,
&mut pk,
data.as_c_ptr(),
data.len() as usize,
data.len(),
) == 1
{
Ok(PublicKey(pk))