Skip to content

Commit 2dea5f2

Browse files
committed
use ResultLike for PyIterReturn
1 parent c414da1 commit 2dea5f2

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

Cargo.lock

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ libc = "0.2.99"
5353
nix = "0.22.1"
5454
paste = "1.0.5"
5555
is-macro = "0.1"
56-
result-like = "0.4"
56+
result-like = "0.4.2"
5757
num_enum = "0.5"
5858
bstr = "0.2.12"
5959
crossbeam-utils = "0.8"

vm/src/protocol/iter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ impl TryFromObject for PyIter<PyObjectRef> {
130130
}
131131
}
132132

133+
#[derive(result_like::ResultLike)]
133134
pub enum PyIterReturn<T = PyObjectRef> {
134135
Return(T),
135136
StopIteration(Option<PyObjectRef>),

0 commit comments

Comments
 (0)