From: Matt Corallo Date: Fri, 30 Apr 2021 18:45:51 +0000 (+0000) Subject: Set default error type for SignOrCreationError for bindings X-Git-Tag: v0.0.14~3^2~3 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=246493f30002a05684d98c4fbe59498987e7dea0;p=rust-lightning Set default error type for SignOrCreationError for bindings The C bindings generator now looks to default generic types as the way to map a struct or enum parameter. Because SignOrCreationError is only used directly with an error type of `()`, we set that to the default and assume no other error types are needed. --- diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index 461ae9b92..9535886d9 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -1322,10 +1322,8 @@ impl std::error::Error for SemanticError { } /// When signing using a fallible method either an user-supplied `SignError` or a `CreationError` /// may occur. -/// -/// (C-not exported) As we don't support unbounded generics #[derive(Eq, PartialEq, Debug, Clone)] -pub enum SignOrCreationError { +pub enum SignOrCreationError { /// An error occurred during signing SignError(S),