diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-04-17 21:06:47 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-04-17 21:06:47 -0400 |
commit | c627737dfa6a30b71e3f7c32cca05675cc7e9b97 (patch) | |
tree | be91d4c3e7fd45c387bdc7b7bf87a7d3068ed3d1 /src/json.rs | |
parent | 828e61a574f484aea575f3cd98322407d3f9aea5 (diff) | |
download | rbw-c627737dfa6a30b71e3f7c32cca05675cc7e9b97.tar.gz rbw-c627737dfa6a30b71e3f7c32cca05675cc7e9b97.zip |
clippy
Diffstat (limited to 'src/json.rs')
-rw-r--r-- | src/json.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<T: serde::de::DeserializeOwned>(self) -> Result<T> { 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 }) } } |