Minor changes for problems `cargo clippy` found

This commit is contained in:
Andrew Poelstra 2015-10-28 07:46:46 -05:00
parent e5c1b42e3c
commit 2df3c0b37c
2 changed files with 5 additions and 1 deletions

View File

@ -159,7 +159,7 @@ extern "C" {
-> c_int;
pub fn secp256k1_ecdsa_signature_serialize_der(cx: Context, output: *const c_uchar,
out_len: *const size_t, sig: *const Signature)
out_len: *mut size_t, sig: *const Signature)
-> c_int;
pub fn secp256k1_ecdsa_recoverable_signature_parse_compact(cx: Context, sig: *mut RecoverableSignature,

View File

@ -36,6 +36,10 @@ macro_rules! impl_array_newtype {
#[inline]
/// Returns the length of the object as an array
pub fn len(&self) -> usize { $len }
#[inline]
/// Returns whether the object as an array is empty
pub fn is_empty(&self) -> bool { false }
}
impl PartialEq for $thing {