There was an error while loading. Please reload this page.
1 parent 88953ed commit d22855eCopy full SHA for d22855e
1 file changed
crates/vm/src/builtins/iter.rs
@@ -196,9 +196,9 @@ impl PySequenceIterator {
196
if let Some(obj) = obj {
197
let seq = obj.sequence_unchecked();
198
match seq.length_opt(vm) {
199
- Some(len) => len.map(|len| {
200
- PyInt::from(len.saturating_sub(position)).into_pyobject(vm)
201
- }),
+ Some(len) => {
+ len.map(|len| PyInt::from(len.saturating_sub(position)).into_pyobject(vm))
+ }
202
None => Ok(vm.ctx.not_implemented()),
203
}
204
} else {
0 commit comments