Skip to content

Commit ec8d8ab

Browse files
committed
Upgrade to pyo3 0.2.7
This partially reverts 9f1a56a since the underlying problem, a breaking change in rust nigthlies, has been resolved in pyo3 0.2.7
1 parent 9f1a56a commit ec8d8ab

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

example/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
55

66
[dependencies.pyo3]
7-
version = "0.2.0"
7+
version = "^0.2.7"
88
default-features = false
99

1010
[lib]

example/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use pyo3::prelude::*;
66
use pyo3::py::modinit;
77

88
/// Module documentation string
9-
#[modinit("_helloworld")]
9+
#[modinit(_helloworld)]
1010
fn init(py: Python, m: &PyModule) -> PyResult<()> {
1111

1212
#[pyfn(m, "run", args="*", kwargs="**")]

example_tomlgen/hello/english/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use pyo3::prelude::*;
66
use pyo3::py::modinit;
77

88
/// Module documentation string
9-
#[modinit("english")]
9+
#[modinit(english)]
1010
fn init(py: Python, m: &PyModule) -> PyResult<()> {
1111

1212
#[pyfn(m, "hello")]

example_tomlgen/hello/french/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use pyo3::prelude::*;
66
use pyo3::py::modinit;
77

88
/// Module documentation string
9-
#[modinit("french")]
9+
#[modinit(french)]
1010
fn init(py: Python, m: &PyModule) -> PyResult<()> {
1111

1212
#[pyfn(m, "hello")]

0 commit comments

Comments
 (0)