From: Matt Corallo Date: Mon, 26 Aug 2024 18:39:57 +0000 (+0000) Subject: Allow functions being mapped to be `const` X-Git-Tag: v0.0.124.0^2~15 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=3f6f42535c398456c0a686053181dd8b1a2a454d;p=ldk-c-bindings Allow functions being mapped to be `const` --- diff --git a/c-bindings-gen/src/blocks.rs b/c-bindings-gen/src/blocks.rs index dc160d2..ce6c2b1 100644 --- a/c-bindings-gen/src/blocks.rs +++ b/c-bindings-gen/src/blocks.rs @@ -521,7 +521,7 @@ fn writeln_docs_impl<'a, W: std::io::Write, I>(w: &mut W, attrs: &[syn::Attribut /// this_param is used when returning Self or accepting a self parameter, and should be the /// concrete, mapped type. pub fn write_method_params(w: &mut W, sig: &syn::Signature, this_param: &str, types: &mut TypeResolver, generics: Option<&GenericTypes>, self_ptr: bool, fn_decl: bool) { - if sig.constness.is_some() || sig.asyncness.is_some() || sig.unsafety.is_some() || + if sig.asyncness.is_some() || sig.unsafety.is_some() || sig.abi.is_some() || sig.variadic.is_some() { unimplemented!(); }