Apply review comments · RustPython/RustPython@78f8f14 · GitHub
Skip to content

Commit 78f8f14

Browse files
committed
Apply review comments
1 parent 888ec28 commit 78f8f14

4 files changed

Lines changed: 40 additions & 22 deletions

File tree

Cargo.lock

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

compiler/src/compile.rs

Lines changed: 1 addition & 3 deletions

vm/src/obj/objasyncgenerator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl PyAsyncGenASend {
212212
let res = self.ag.inner.send(val, vm);
213213
let res = PyAsyncGenWrappedValue::unbox(&self.ag, res, vm);
214214
if res.is_err() {
215-
self.state.set(AwaitableState::Closed);
215+
self.close();
216216
}
217217
res
218218
}
@@ -239,7 +239,7 @@ impl PyAsyncGenASend {
239239
);
240240
let res = PyAsyncGenWrappedValue::unbox(&self.ag, res, vm);
241241
if res.is_err() {
242-
self.state.set(AwaitableState::Closed);
242+
self.close();
243243
}
244244
res
245245
}

vm/src/obj/objcoroinner.rs

Lines changed: 8 additions & 7 deletions

0 commit comments

Comments
 (0)