From c627737dfa6a30b71e3f7c32cca05675cc7e9b97 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 17 Apr 2021 21:06:47 -0400 Subject: clippy --- src/json.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/json.rs') diff --git a/src/json.rs b/src/json.rs index d6c5328..ce95262 100644 --- a/src/json.rs +++ b/src/json.rs @@ -8,7 +8,7 @@ impl DeserializeJsonWithPath for String { fn json_with_path(self) -> Result { let jd = &mut serde_json::Deserializer::from_str(&self); serde_path_to_error::deserialize(jd) - .map_err(|source| Error::JSON { source }) + .map_err(|source| Error::Json { source }) } } @@ -18,7 +18,7 @@ impl DeserializeJsonWithPath for reqwest::blocking::Response { self.bytes().map_err(|source| Error::Reqwest { source })?; let jd = &mut serde_json::Deserializer::from_slice(&bytes); serde_path_to_error::deserialize(jd) - .map_err(|source| Error::JSON { source }) + .map_err(|source| Error::Json { source }) } } @@ -40,6 +40,6 @@ impl DeserializeJsonWithPathAsync for reqwest::Response { .map_err(|source| Error::Reqwest { source })?; let jd = &mut serde_json::Deserializer::from_slice(&bytes); serde_path_to_error::deserialize(jd) - .map_err(|source| Error::JSON { source }) + .map_err(|source| Error::Json { source }) } } -- cgit v1.2.3-54-g00ecf