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:
parent
48ce60d507
commit
b3cd414a5a
|
@ -59,7 +59,7 @@ impl Signature {
|
||||||
ffi::secp256k1_context_no_precomp,
|
ffi::secp256k1_context_no_precomp,
|
||||||
&mut ret,
|
&mut ret,
|
||||||
data.as_c_ptr(),
|
data.as_c_ptr(),
|
||||||
data.len() as usize,
|
data.len(),
|
||||||
) == 1
|
) == 1
|
||||||
{
|
{
|
||||||
Ok(Signature(ret))
|
Ok(Signature(ret))
|
||||||
|
@ -105,7 +105,7 @@ impl Signature {
|
||||||
ffi::secp256k1_context_no_precomp,
|
ffi::secp256k1_context_no_precomp,
|
||||||
&mut ret,
|
&mut ret,
|
||||||
data.as_c_ptr(),
|
data.as_c_ptr(),
|
||||||
data.len() as usize,
|
data.len(),
|
||||||
) == 1
|
) == 1
|
||||||
{
|
{
|
||||||
Ok(Signature(ret))
|
Ok(Signature(ret))
|
||||||
|
|
|
@ -486,7 +486,7 @@ impl PublicKey {
|
||||||
ffi::secp256k1_context_no_precomp,
|
ffi::secp256k1_context_no_precomp,
|
||||||
&mut pk,
|
&mut pk,
|
||||||
data.as_c_ptr(),
|
data.as_c_ptr(),
|
||||||
data.len() as usize,
|
data.len(),
|
||||||
) == 1
|
) == 1
|
||||||
{
|
{
|
||||||
Ok(PublicKey(pk))
|
Ok(PublicKey(pk))
|
||||||
|
|
Loading…
Reference in New Issue