File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ fn hello(_py: Python) -> PyResult<()> {
13
13
#[ pymodule]
14
14
/// Module documentation string
15
15
fn english ( _py : Python , m : & PyModule ) -> PyResult < ( ) > {
16
- m. add_wrapped ( wrap_function ! ( hello) ) ?;
16
+ m. add_wrapped ( wrap_pyfunction ! ( hello) ) ?;
17
17
Ok ( ( ) )
18
18
}
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ fn hello(_py: Python) -> PyResult<()> {
13
13
#[ pymodule]
14
14
/// Module documentation string
15
15
fn french ( _py : Python , m : & PyModule ) -> PyResult < ( ) > {
16
- m. add_wrapped ( wrap_function ! ( hello) ) ?;
16
+ m. add_wrapped ( wrap_pyfunction ! ( hello) ) ?;
17
17
Ok ( ( ) )
18
18
}
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ fn parse_text(text: &str) -> PyResult<Document> {
57
57
58
58
#[ pymodule]
59
59
fn html_py_ever ( _py : Python , m : & PyModule ) -> PyResult < ( ) > {
60
- m. add_wrapped ( wrap_function ! ( parse_file) ) ?;
61
- m. add_wrapped ( wrap_function ! ( parse_text) ) ?;
60
+ m. add_wrapped ( wrap_pyfunction ! ( parse_file) ) ?;
61
+ m. add_wrapped ( wrap_pyfunction ! ( parse_text) ) ?;
62
62
m. add_class :: < Document > ( ) ?;
63
63
64
64
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments