Skip to content

Commit d335cfc

Browse files
committed
[bindings] Allow unused fns that the bindings can call but don't
We no longer have any public `Option<Signatures>` in our code, and thus get warnings that the two functions which support it are unused. Instead of removing support for them (which we may need in the future), we add `#[allow(unused)]`.
1 parent ff0561d commit d335cfc

File tree

1 file changed

+3
-2
lines changed
  • lightning-c-bindings/src/c_types

1 file changed

+3
-2
lines changed

lightning-c-bindings/src/c_types/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ impl Signature {
5757
pub(crate) fn into_rust(&self) -> SecpSignature {
5858
SecpSignature::from_compact(&self.compact_form).unwrap()
5959
}
60-
pub(crate) fn is_null(&self) -> bool { self.compact_form[..] == [0; 64][..] }
61-
pub(crate) fn null() -> Self { Self { compact_form: [0; 64] } }
60+
// The following are used for Option<Signature> which we support, but don't use anymore
61+
#[allow(unused)] pub(crate) fn is_null(&self) -> bool { self.compact_form[..] == [0; 64][..] }
62+
#[allow(unused)] pub(crate) fn null() -> Self { Self { compact_form: [0; 64] } }
6263
}
6364

6465
#[repr(C)]

0 commit comments

Comments
 (0)