diff options
author | David Blajda <blajda@hotmail.com> | 2018-12-18 23:13:54 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2018-12-18 23:13:54 +0000 |
commit | fbee478ad333732982f7e0eecdcc3681a6d71f2f (patch) | |
tree | 03059df9fba2429c599588907681d9e94f8e9f7b /src/error.rs | |
parent | d34229bc3e495d2927415f408b18aec51a4574e2 (diff) |
Refactor barrier to use traits
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 { |