bump deps, fix clippy warnings

This commit is contained in:
Martin Algesten
2020-03-14 09:46:18 +01:00
parent 3ef304f290
commit 2956683870
4 changed files with 6 additions and 7 deletions

View File

@@ -132,7 +132,7 @@ impl Request {
/// ```
#[cfg(feature = "json")]
pub fn send_json(&mut self, data: SerdeValue) -> Response {
if let None = self.header("Content-Type") {
if self.header("Content-Type").is_none() {
self.set("Content-Type", "application/json");
}
self.do_call(Payload::JSON(data))