diff options
| author | Zeyla Hellyer <[email protected]> | 2018-03-26 20:05:01 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-03-26 20:05:01 -0700 |
| commit | d14aa50b45dd0d8843dcd1f34183832d4a4981f9 (patch) | |
| tree | 6d49b84aa74ac1d6004ab5e07f945b11c956fa9c /src/error.rs | |
| parent | Remove a couple of shard debugs (diff) | |
| download | serenity-d14aa50b45dd0d8843dcd1f34183832d4a4981f9.tar.xz serenity-d14aa50b45dd0d8843dcd1f34183832d4a4981f9.zip | |
Add 'send_files' http support
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 64b64af..358311e 100644 --- a/src/error.rs +++ b/src/error.rs @@ -146,6 +146,11 @@ impl From<GatewayError> for Error { fn from(e: GatewayError) -> Error { Error::Gateway(e) } } +#[cfg(feature = "http")] +impl From<HttpError> for Error { + fn from(e: HttpError) -> Error { Error::Http(e) } +} + #[cfg(feature = "hyper")] impl From<HyperError> for Error { fn from(e: HyperError) -> Error { Error::Hyper(e) } |