diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 07bb578..6b9f5d5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -22,6 +22,15 @@ impl From<reqwest::Error> for Error { } } +impl From<()> for Error { + + fn from(err: ()) -> Error { + Error { + inner: Kind::ClientError("Internal error".to_owned()) + } + } +} + impl From<futures::Canceled> for Error { fn from(_err: futures::Canceled) -> Error { |