Skip to content

Commit

Permalink
Merge pull request rust-bitcoin#565 from tcharding/12-16-clippy
Browse files Browse the repository at this point in the history
Remove unnecessary cast
  • Loading branch information
elichai committed Dec 16, 2022
2 parents 48ce60d + b3cd414 commit 2fccf8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ecdsa/mod.rs
Expand Up @@ -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))
Expand Down Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/key.rs
Expand Up @@ -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))
Expand Down

0 comments on commit 2fccf8d

Please sign in to comment.