File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,7 @@ mod _multiprocessing {
193193 remaining. min ( poll_ms)
194194 } ;
195195
196- let res =
197- unsafe { WaitForSingleObjectEx ( self . handle . as_raw ( ) , wait_ms, 0 ) } ;
196+ let res = unsafe { WaitForSingleObjectEx ( self . handle . as_raw ( ) , wait_ms, 0 ) } ;
198197
199198 match res {
200199 WAIT_OBJECT_0 => {
@@ -213,7 +212,7 @@ mod _multiprocessing {
213212 _ => {
214213 return Err ( vm. new_runtime_error ( format ! (
215214 "WaitForSingleObject() gave unrecognized value {res}"
216- ) ) )
215+ ) ) ) ;
217216 }
218217 }
219218 }
Original file line number Diff line number Diff line change @@ -2061,18 +2061,17 @@ pub(super) mod types {
20612061 if !vm. is_none ( & filename) {
20622062 let mut args_reduced: Vec < PyObjectRef > = vec ! [ errno, msg, filename] ;
20632063
2064- let filename2 =
2065- obj. get_attr ( "filename2" , vm) . ok ( ) . filter ( |f| !vm. is_none ( f) ) ;
2064+ let filename2 = obj
2065+ . get_attr ( "filename2" , vm)
2066+ . ok ( )
2067+ . filter ( |f| !vm. is_none ( f) ) ;
20662068 #[ cfg( windows) ]
2067- let winerror =
2068- obj. get_attr ( "winerror" , vm) . ok ( ) . filter ( |w| !vm. is_none ( w) ) ;
2069+ let winerror = obj. get_attr ( "winerror" , vm) . ok ( ) . filter ( |w| !vm. is_none ( w) ) ;
20692070
20702071 if let Some ( filename2) = filename2 {
20712072 #[ cfg( windows) ]
20722073 {
2073- args_reduced. push (
2074- winerror. unwrap_or_else ( || vm. ctx . none ( ) ) ,
2075- ) ;
2074+ args_reduced. push ( winerror. unwrap_or_else ( || vm. ctx . none ( ) ) ) ;
20762075 }
20772076 #[ cfg( not( windows) ) ]
20782077 args_reduced. push ( vm. ctx . none ( ) ) ;
You can’t perform that action at this time.
0 commit comments