From 246493f30002a05684d98c4fbe59498987e7dea0 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 30 Apr 2021 18:45:51 +0000 Subject: [PATCH] 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. --- lightning-invoice/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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), -- 2.39.5