From 20b161096e67d22c962e69b2656ae9741ac73c25 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Mon, 21 Nov 2016 14:43:28 -0800 Subject: [PATCH] update Error to implement Send BREAKING CHANGE: This does change the type of `Error::Serialize`, but should only possibly affect those constructing `Error`, not consuming it. --- src/error.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)