diff options
| author | Zeyla Hellyer <[email protected]> | 2018-03-25 19:27:04 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-03-25 19:27:04 -0700 |
| commit | 1d9199a92824a6d5f4b82b31e5a6d8f693e443bf (patch) | |
| tree | 51593e524941002ff3089c84e68374f812df27c7 /src/http | |
| parent | Remove cache/http methods on structs (diff) | |
| download | serenity-1d9199a92824a6d5f4b82b31e5a6d8f693e443bf.tar.xz serenity-1d9199a92824a6d5f4b82b31e5a6d8f693e443bf.zip | |
Remove `http::FutureResult`, use `error`'s
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs index a4c4cbc..52845af 100644 --- a/src/http/mod.rs +++ b/src/http/mod.rs @@ -52,7 +52,7 @@ use std::rc::Rc; use std::str::FromStr; use tokio_core::reactor::Handle; use ::builder::*; -use ::{Error, utils as serenity_utils}; +use ::{Error, FutureResult, utils as serenity_utils}; macro_rules! ftry { ($code:expr) => { @@ -63,8 +63,6 @@ macro_rules! ftry { } } -pub type FutureResult<T> = Box<Future<Item = T, Error = Error>>; - /// An method used for ratelimiting special routes. /// /// This is needed because `hyper`'s `Method` enum does not derive Copy. |