Merge pull request #565 from tcharding/12-16-clippy
Remove unnecessary cast
This commit is contained in:
commit
2fccf8dccc
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue