]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Allow functions being mapped to be `const`
authorMatt Corallo <git@bluematt.me>
Mon, 26 Aug 2024 18:39:57 +0000 (18:39 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 26 Aug 2024 23:31:36 +0000 (23:31 +0000)
c-bindings-gen/src/blocks.rs

index dc160d2ef0f2ce0f3dd2f58d4e390de49c048a7f..ce6c2b16ed4439ecebd8b9f373b571a3f7925e0f 100644 (file)
@@ -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: std::io::Write>(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!();
        }