Merge pull request #132 from tomprince/get-ref-send-sync
Make `Error::get_ref` return a `Send+Sync` error.
This commit is contained in:
@@ -25,7 +25,7 @@ impl Error {
|
|||||||
/// The `'static` bounds allows using `downcast_ref` to check the
|
/// The `'static` bounds allows using `downcast_ref` to check the
|
||||||
/// details of the error.
|
/// details of the error.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn get_ref(&self) -> Option<&(StdError + 'static)> {
|
pub fn get_ref(&self) -> Option<&(StdError + Send + Sync + 'static)> {
|
||||||
match self.kind {
|
match self.kind {
|
||||||
Kind::Http(ref e) => Some(e),
|
Kind::Http(ref e) => Some(e),
|
||||||
Kind::UrlEncoded(ref e) => Some(e),
|
Kind::UrlEncoded(ref e) => Some(e),
|
||||||
|
|||||||
Reference in New Issue
Block a user