Make Error::get_ref return a Send+Sync error.

This commit is contained in:
Tom Prince
2017-05-31 23:16:44 -06:00
parent 01374ae8b7
commit 0f37eb0ce0

View File

@@ -25,7 +25,7 @@ impl Error {
/// The `'static` bounds allows using `downcast_ref` to check the
/// details of the error.
#[inline]
pub fn get_ref(&self) -> Option<&(StdError + 'static)> {
pub fn get_ref(&self) -> Option<&(StdError + Send + Sync + 'static)> {
match self.kind {
Kind::Http(ref e) => Some(e),
Kind::UrlEncoded(ref e) => Some(e),