Skip to content

Commit 3f6f425

Browse files
committed
Allow functions being mapped to be const
1 parent 358152b commit 3f6f425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c-bindings-gen/src/blocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ fn writeln_docs_impl<'a, W: std::io::Write, I>(w: &mut W, attrs: &[syn::Attribut
521521
/// this_param is used when returning Self or accepting a self parameter, and should be the
522522
/// concrete, mapped type.
523523
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) {
524-
if sig.constness.is_some() || sig.asyncness.is_some() || sig.unsafety.is_some() ||
524+
if sig.asyncness.is_some() || sig.unsafety.is_some() ||
525525
sig.abi.is_some() || sig.variadic.is_some() {
526526
unimplemented!();
527527
}

0 commit comments

Comments
 (0)