File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 3
3
extern crate pyo3;
4
4
5
5
use pyo3:: prelude:: * ;
6
+ use pyo3:: py:: modinit;
6
7
7
8
/// Module documentation string
8
- #[ py :: modinit( _helloworld) ]
9
+ #[ modinit( " _helloworld" ) ]
9
10
fn init ( py : Python , m : & PyModule ) -> PyResult < ( ) > {
10
11
11
12
#[ pyfn( m, "run" , args="*" , kwargs="**" ) ]
Original file line number Diff line number Diff line change 3
3
extern crate pyo3;
4
4
5
5
use pyo3:: prelude:: * ;
6
+ use pyo3:: py:: modinit;
6
7
7
8
/// Module documentation string
8
- #[ py :: modinit( english) ]
9
+ #[ modinit( " english" ) ]
9
10
fn init ( py : Python , m : & PyModule ) -> PyResult < ( ) > {
10
11
11
12
#[ pyfn( m, "hello" ) ]
Original file line number Diff line number Diff line change 3
3
extern crate pyo3;
4
4
5
5
use pyo3:: prelude:: * ;
6
+ use pyo3:: py:: modinit;
6
7
7
8
/// Module documentation string
8
- #[ py :: modinit( french) ]
9
+ #[ modinit( " french" ) ]
9
10
fn init ( py : Python , m : & PyModule ) -> PyResult < ( ) > {
10
11
11
12
#[ pyfn( m, "hello" ) ]
You can’t perform that action at this time.
0 commit comments