Merge pull request #132 from tomprince/get-ref-send-sync

Make `Error::get_ref` return a `Send+Sync` error.
This commit is contained in:
Sean McArthur
2017-06-01 08:05:57 -07:00
committed by GitHub

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),