improvements

This commit is contained in:
Sean McArthur
2016-10-16 09:40:28 -07:00
parent 9bfdcec052
commit d78eff6918
6 changed files with 104 additions and 22 deletions

14
src/error.rs Normal file
View File

@@ -0,0 +1,14 @@
#[derive(Debug)]
pub enum Error {
Http(::hyper::Error),
#[doc(hidden)]
__DontMatchMe,
}
impl From<::hyper::Error> for Error {
fn from(err: ::hyper::Error) -> Error {
Error::Http(err)
}
}
pub type Result<T> = ::std::result::Result<T, Error>;