@@ -140,7 +140,7 @@ impl Multi {
140
140
let cb: curl_sys:: curl_socket_callback = cb;
141
141
self . setopt_ptr (
142
142
curl_sys:: CURLMOPT_SOCKETFUNCTION ,
143
- cb as usize as * const c_char
143
+ cb as usize as * const c_char ,
144
144
) ?;
145
145
let ptr = & * self . data as * const _ ;
146
146
self . setopt_ptr ( curl_sys:: CURLMOPT_SOCKETDATA , ptr as * const c_char ) ?;
@@ -199,7 +199,7 @@ impl Multi {
199
199
cvt ( curl_sys:: curl_multi_assign (
200
200
self . raw ,
201
201
socket,
202
- token as * mut _
202
+ token as * mut _ ,
203
203
) ) ?;
204
204
Ok ( ( ) )
205
205
}
@@ -239,7 +239,7 @@ impl Multi {
239
239
let cb: curl_sys:: curl_multi_timer_callback = cb;
240
240
self . setopt_ptr (
241
241
curl_sys:: CURLMOPT_TIMERFUNCTION ,
242
- cb as usize as * const c_char
242
+ cb as usize as * const c_char ,
243
243
) ?;
244
244
let ptr = & * self . data as * const _ ;
245
245
self . setopt_ptr ( curl_sys:: CURLMOPT_TIMERDATA , ptr as * const c_char ) ?;
@@ -381,7 +381,7 @@ impl Multi {
381
381
unsafe {
382
382
cvt ( curl_sys:: curl_multi_remove_handle (
383
383
self . raw ,
384
- easy. easy . raw ( )
384
+ easy. easy . raw ( ) ,
385
385
) ) ?;
386
386
}
387
387
Ok ( easy. easy )
@@ -392,7 +392,7 @@ impl Multi {
392
392
unsafe {
393
393
cvt ( curl_sys:: curl_multi_remove_handle (
394
394
self . raw ,
395
- easy. easy . raw ( )
395
+ easy. easy . raw ( ) ,
396
396
) ) ?;
397
397
}
398
398
Ok ( easy. easy )
@@ -455,7 +455,7 @@ impl Multi {
455
455
self . raw ,
456
456
socket,
457
457
events. bits ,
458
- & mut remaining
458
+ & mut remaining,
459
459
) ) ?;
460
460
Ok ( remaining as u32 )
461
461
}
@@ -483,7 +483,7 @@ impl Multi {
483
483
self . raw ,
484
484
curl_sys:: CURL_SOCKET_BAD ,
485
485
0 ,
486
- & mut remaining
486
+ & mut remaining,
487
487
) ) ?;
488
488
Ok ( remaining as u32 )
489
489
}
@@ -560,7 +560,7 @@ impl Multi {
560
560
waitfds. as_mut_ptr ( ) as * mut _ ,
561
561
waitfds. len ( ) as u32 ,
562
562
timeout_ms,
563
- & mut ret
563
+ & mut ret,
564
564
) ) ?;
565
565
Ok ( ret as u32 )
566
566
}
@@ -657,7 +657,7 @@ impl Multi {
657
657
let write = write. map ( |r| r as * mut _ ) . unwrap_or ( 0 as * mut _ ) ;
658
658
let except = except. map ( |r| r as * mut _ ) . unwrap_or ( 0 as * mut _ ) ;
659
659
cvt ( curl_sys:: curl_multi_fdset (
660
- self . raw , read, write, except, & mut ret
660
+ self . raw , read, write, except, & mut ret,
661
661
) ) ?;
662
662
if ret == -1 {
663
663
Ok ( None )
@@ -685,7 +685,7 @@ impl Multi {
685
685
read as * mut _ ,
686
686
write as * mut _ ,
687
687
except as * mut _ ,
688
- & mut ret
688
+ & mut ret,
689
689
) ) ?;
690
690
if ret == -1 {
691
691
Ok ( None )
@@ -911,7 +911,7 @@ impl<'multi> Message<'multi> {
911
911
:: cvt ( curl_sys:: curl_easy_getinfo (
912
912
( * self . ptr ) . easy_handle ,
913
913
curl_sys:: CURLINFO_PRIVATE ,
914
- & mut p
914
+ & mut p,
915
915
) ) ?;
916
916
Ok ( p)
917
917
}
0 commit comments