diff --git a/src/error.rs b/src/error.rs index 184189254..2a7896be0 100644 --- a/src/error.rs +++ b/src/error.rs @@ -10,7 +10,7 @@ pub enum Error { /// /// This may be serializing a value that is illegal in JSON or /// form-url-encoded bodies. - Serialize(Box), + Serialize(Box), /// A request tried to redirect too many times. TooManyRedirects, #[doc(hidden)] @@ -50,6 +50,12 @@ impl StdError for Error { } } +fn _assert_types() { + fn _assert_send() { + } + _assert_send::(); +} + impl From<::hyper::Error> for Error { fn from(err: ::hyper::Error) -> Error { Error::Http(err)