Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon committed Apr 5, 2024
1 parent f8ea2e4 commit 3b32d71
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 19 deletions.
1 change: 0 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,3 @@ jobs:
with:
name: wheels
path: dist

2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nekoton-python"
version = "0.1.16"
version = "0.1.17"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin>=0.14,<0.15"]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"

[tool.maturin]
Expand Down
24 changes: 9 additions & 15 deletions src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ impl AccountStatesAsyncIter {

pub fn __anext__<'a>(&'a mut self, py: Python<'a>) -> PyResult<Option<&'a PyAny>> {
let state = self.0.clone();
match pyo3_asyncio::tokio::future_into_py(py, async move {
pyo3_asyncio::tokio::future_into_py(py, async move {
let mut state = state.lock().await;
match &*state {
AccountStatesAsyncIterState::Closed => {
Expand Down Expand Up @@ -905,10 +905,8 @@ impl AccountStatesAsyncIter {
}
_ => unreachable!(),
}
}) {
Ok(awaitable) => Ok(Some(awaitable)),
Err(e) => Err(e),
}
})
.map(Some)
}
}

Expand Down Expand Up @@ -981,7 +979,7 @@ impl AccountTransactionsAsyncIter {

pub fn __anext__<'a>(&'a mut self, py: Python<'a>) -> PyResult<Option<&'a PyAny>> {
let state = self.0.clone();
match pyo3_asyncio::tokio::future_into_py(py, async move {
pyo3_asyncio::tokio::future_into_py(py, async move {
let mut state = state.lock().await;
match &*state {
AccountTransactionsAsyncIterState::Closed => {
Expand Down Expand Up @@ -1013,10 +1011,8 @@ impl AccountTransactionsAsyncIter {
},
_ => unreachable!(),
}
}) {
Ok(awaitable) => Ok(Some(awaitable)),
Err(e) => Err(e),
}
})
.map(Some)
}
}

Expand Down Expand Up @@ -1147,7 +1143,7 @@ impl TraceTransaction {

pub fn __anext__<'a>(&'a mut self, py: Python<'a>) -> PyResult<Option<&'a PyAny>> {
let state = self.0.clone();
match pyo3_asyncio::tokio::future_into_py(py, async move {
pyo3_asyncio::tokio::future_into_py(py, async move {
let mut state = state.lock().await;
if let Some(root) = state.root.take() {
state.yield_root = false;
Expand All @@ -1161,10 +1157,8 @@ impl TraceTransaction {
}
None => Err(PyStopAsyncIteration::new_err(())),
}
}) {
Ok(awaitable) => Ok(Some(awaitable)),
Err(e) => Err(e),
}
})
.map(Some)
}
}

Expand Down

0 comments on commit 3b32d71

Please sign in to comment.