handle json serialization errors

fixes https://github.com/seanmonstar/reqwest/issues/112
This commit is contained in:
Corentin Henry
2017-05-31 16:41:43 -07:00
parent 7565179a1c
commit 2f1b3b352b
2 changed files with 5 additions and 5 deletions

View File

@@ -101,7 +101,7 @@
//!
//! let client = reqwest::Client::new()?;
//! let res = client.post("http://httpbin.org/post")
//! .json(&map)
//! .json(&map)?
//! .send()?;
//! # Ok(())
//! # }