dont require agent().build()

This commit is contained in:
Martin Algesten
2018-07-01 10:24:42 +02:00
parent 03928a05c5
commit a14e75fcbc
4 changed files with 6 additions and 6 deletions

View File

@@ -133,7 +133,7 @@ pub use serde_json::{to_value as serde_to_value, Map as SerdeMap, Value as Serde
/// Agents are used to keep state between requests.
pub fn agent() -> Agent {
Agent::new()
Agent::new().build()
}
/// Make a request setting the HTTP method via a string.