Skip to content

Commit

Permalink
Merge pull request #1280 from davidhewitt/cross-module-pyfunction
Browse files Browse the repository at this point in the history
wrap_pyfunction: allow working on all crate functions
  • Loading branch information
kngwyu authored Nov 17, 2020
2 parents aa30163 + fbcf3eb commit dcca3f8
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 dcca3f8

Please sign in to comment.