Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e5e723

Browse files
Auto-format: cargo fmt --all
1 parent 38ff638 commit 1e5e723

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/vm/src/frame.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,9 @@ impl ExecutingFrame<'_> {
10511051
let iterable = self.pop_value();
10521052
let iter = if iterable.class().is(vm.ctx.types.coroutine_type) {
10531053
// Coroutine requires CO_COROUTINE or CO_ITERABLE_COROUTINE flag
1054-
if !self.code.flags.intersects(bytecode::CodeFlags::COROUTINE | bytecode::CodeFlags::ITERABLE_COROUTINE) {
1054+
if !self.code.flags.intersects(
1055+
bytecode::CodeFlags::COROUTINE | bytecode::CodeFlags::ITERABLE_COROUTINE,
1056+
) {
10551057
return Err(vm.new_type_error(
10561058
"cannot 'yield from' a coroutine object in a non-coroutine generator"
10571059
.to_owned(),

0 commit comments

Comments
 (0)