Skip to content

Commit 14783cf

Browse files
committed
Run rustfmt
1 parent 4ce85a1 commit 14783cf

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ extern crate schannel;
6969

7070
use std::ffi::CStr;
7171
use std::str;
72-
use std::sync::{Once};
72+
use std::sync::Once;
7373

7474
pub use error::{Error, FormError, MultiError, ShareError};
7575
mod error;

src/multi.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl Multi {
140140
let cb: curl_sys::curl_socket_callback = cb;
141141
self.setopt_ptr(
142142
curl_sys::CURLMOPT_SOCKETFUNCTION,
143-
cb as usize as *const c_char
143+
cb as usize as *const c_char,
144144
)?;
145145
let ptr = &*self.data as *const _;
146146
self.setopt_ptr(curl_sys::CURLMOPT_SOCKETDATA, ptr as *const c_char)?;
@@ -199,7 +199,7 @@ impl Multi {
199199
cvt(curl_sys::curl_multi_assign(
200200
self.raw,
201201
socket,
202-
token as *mut _
202+
token as *mut _,
203203
))?;
204204
Ok(())
205205
}
@@ -239,7 +239,7 @@ impl Multi {
239239
let cb: curl_sys::curl_multi_timer_callback = cb;
240240
self.setopt_ptr(
241241
curl_sys::CURLMOPT_TIMERFUNCTION,
242-
cb as usize as *const c_char
242+
cb as usize as *const c_char,
243243
)?;
244244
let ptr = &*self.data as *const _;
245245
self.setopt_ptr(curl_sys::CURLMOPT_TIMERDATA, ptr as *const c_char)?;
@@ -381,7 +381,7 @@ impl Multi {
381381
unsafe {
382382
cvt(curl_sys::curl_multi_remove_handle(
383383
self.raw,
384-
easy.easy.raw()
384+
easy.easy.raw(),
385385
))?;
386386
}
387387
Ok(easy.easy)
@@ -392,7 +392,7 @@ impl Multi {
392392
unsafe {
393393
cvt(curl_sys::curl_multi_remove_handle(
394394
self.raw,
395-
easy.easy.raw()
395+
easy.easy.raw(),
396396
))?;
397397
}
398398
Ok(easy.easy)
@@ -455,7 +455,7 @@ impl Multi {
455455
self.raw,
456456
socket,
457457
events.bits,
458-
&mut remaining
458+
&mut remaining,
459459
))?;
460460
Ok(remaining as u32)
461461
}
@@ -483,7 +483,7 @@ impl Multi {
483483
self.raw,
484484
curl_sys::CURL_SOCKET_BAD,
485485
0,
486-
&mut remaining
486+
&mut remaining,
487487
))?;
488488
Ok(remaining as u32)
489489
}
@@ -560,7 +560,7 @@ impl Multi {
560560
waitfds.as_mut_ptr() as *mut _,
561561
waitfds.len() as u32,
562562
timeout_ms,
563-
&mut ret
563+
&mut ret,
564564
))?;
565565
Ok(ret as u32)
566566
}
@@ -657,7 +657,7 @@ impl Multi {
657657
let write = write.map(|r| r as *mut _).unwrap_or(0 as *mut _);
658658
let except = except.map(|r| r as *mut _).unwrap_or(0 as *mut _);
659659
cvt(curl_sys::curl_multi_fdset(
660-
self.raw, read, write, except, &mut ret
660+
self.raw, read, write, except, &mut ret,
661661
))?;
662662
if ret == -1 {
663663
Ok(None)
@@ -685,7 +685,7 @@ impl Multi {
685685
read as *mut _,
686686
write as *mut _,
687687
except as *mut _,
688-
&mut ret
688+
&mut ret,
689689
))?;
690690
if ret == -1 {
691691
Ok(None)
@@ -911,7 +911,7 @@ impl<'multi> Message<'multi> {
911911
::cvt(curl_sys::curl_easy_getinfo(
912912
(*self.ptr).easy_handle,
913913
curl_sys::CURLINFO_PRIVATE,
914-
&mut p
914+
&mut p,
915915
))?;
916916
Ok(p)
917917
}

0 commit comments

Comments
 (0)