diff --git a/pyo3cls/Cargo.toml b/pyo3cls/Cargo.toml index f2be9d64..2995cf60 100644 --- a/pyo3cls/Cargo.toml +++ b/pyo3cls/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pyo3cls" -version = "0.2.0" +version = "0.2.1" description = "Proc macros for PyO3 package" authors = ["PyO3 Project and Contributors , name: &syn::Ident, spec: &FnSpec) -> To |item| if item.1.py {syn::Ident::from("_py")} else { syn::Ident::from(format!("arg{}", item.0))}).collect(); let cb = quote! {{ - #cls::#name(&_obj, #(#names),*) + #cls::#name(_obj.as_ref(), #(#names),*) }}; let body = impl_arg_params(spec, cb);