File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -490,18 +490,18 @@ impl PyListIterator {
490
490
}
491
491
492
492
#[ pymethod( name = "__setstate__" ) ]
493
- fn setstate ( & self , state : PyObjectRef , vm : & VirtualMachine ) -> PyResult {
493
+ fn setstate ( & self , state : PyObjectRef , vm : & VirtualMachine ) -> PyResult < ( ) > {
494
494
// When we're exhausted, just return.
495
495
if let Exhausted = self . status . load ( ) {
496
- return Ok ( vm . ctx . none ( ) ) ;
496
+ return Ok ( ( ) ) ;
497
497
}
498
498
if let Some ( i) = state. payload :: < PyInt > ( ) {
499
499
let position = std:: cmp:: min (
500
500
int:: try_to_primitive ( i. as_bigint ( ) , vm) . unwrap_or ( 0 ) ,
501
501
self . list . len ( ) ,
502
502
) ;
503
503
self . position . store ( position) ;
504
- Ok ( vm . ctx . none ( ) )
504
+ Ok ( ( ) )
505
505
} else {
506
506
Err ( vm. new_type_error ( "an integer is required." . to_owned ( ) ) )
507
507
}
You can’t perform that action at this time.
0 commit comments