Skip to content

Commit 3c9be91

Browse files
committed
feat(lib)!: add Error::SerdeJson variant
1 parent d6a07af commit 3c9be91

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,12 @@ impl Builder {
204204
pub enum Error {
205205
/// Error during `minreq` HTTP request
206206
#[cfg(feature = "blocking")]
207-
Minreq(::minreq::Error),
208-
/// Error during reqwest HTTP request
207+
Minreq(minreq::Error),
208+
/// Error during `reqwest` HTTP request
209209
#[cfg(feature = "async")]
210-
Reqwest(::reqwest::Error),
210+
Reqwest(reqwest::Error),
211+
/// Error during JSON (de)serialization
212+
SerdeJson(serde_json::Error),
211213
/// HTTP response error
212214
HttpResponse {
213215
/// The HTTP status code returned by the server.

0 commit comments

Comments
 (0)