Skip to content

Commit

Permalink
wrap_pyfunction: allow working on all crate functions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Nov 15, 2020
1 parent aa30163 commit fbcf3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyo3-derive-backend/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub fn add_fn_to_module(
let wrapper = function_c_wrapper(name, &wrapper_ident, &spec, pyfn_attrs.pass_module);
Ok(quote! {
#wrapper
fn #function_wrapper_ident<'a>(
pub(crate) fn #function_wrapper_ident<'a>(
args: impl Into<pyo3::derive_utils::PyFunctionArguments<'a>>
) -> pyo3::PyResult<&'a pyo3::types::PyCFunction> {
let name = concat!(stringify!(#python_name), "\0");
Expand Down

0 comments on commit fbcf3eb

Please sign in to comment.