Merge pull request #565 from tcharding/12-16-clippy

Remove unnecessary cast
This commit is contained in:
Elichai Turkel 2022-12-16 11:11:28 +02:00 committed by GitHub
commit 2fccf8dccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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))