make Client: Send + Sync, RequestBuilder: Send, Response: Send

This commit is contained in:
Sean McArthur
2016-12-02 15:36:33 -08:00
parent 552f4712cd
commit d18a53b3fc
3 changed files with 66 additions and 17 deletions

View File

@@ -120,3 +120,14 @@ pub fn get<T: IntoUrl>(url: T) -> ::Result<Response> {
let client = try!(Client::new());
client.get(url).send()
}
fn _assert_impls() {
fn assert_send<T: Send>() {}
fn assert_sync<T: Sync>() {}
assert_send::<Client>();
assert_sync::<Client>();
assert_send::<RequestBuilder>();
assert_send::<Response>();
}