Update client.rs

This commit is contained in:
Raphaël Huchet
2017-05-15 23:37:31 +02:00
committed by GitHub
parent 0b5ba9aaa7
commit 6a95a7e19e

View File

@@ -32,18 +32,19 @@ static DEFAULT_USER_AGENT: &'static str = concat!(env!("CARGO_PKG_NAME"), "/", e
/// # Examples
///
/// ```no_run
/// extern crate reqwest;
/// # extern crate reqwest;
/// #
/// # use reqwest::{Error, Client};
/// #
/// # fn run() -> Result<(), Error> {
/// let client = Client::new()?;
/// client.get("http://httpbin.org/").send()?;
/// # Ok(())
/// # }
///
/// use reqwest::{Error, Client};
///
/// fn run() -> Result<(), Error> {
/// Client::new()?.get("http://httpbin.org/").send()?;
/// Ok(())
/// }
///
/// fn main() {
/// run().unwrap();
/// }
/// # fn main() {
/// # run().unwrap();
/// # }
/// ```
#[derive(Clone)]
pub struct Client {