From 3f6f42535c398456c0a686053181dd8b1a2a454d Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 26 Aug 2024 18:39:57 +0000 Subject: [PATCH] Allow functions being mapped to be `const` --- c-bindings-gen/src/blocks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!(); } -- 2.39.5