Skip to content
Permalink
Browse files

(fix) add Sync for error cause [#194]

Signed-off-by: Ning Sun <sunng@about.me>
  • Loading branch information...
sunng87 committed Nov 20, 2017
1 parent 8ba925b commit 4e24a37b0fb433f3de42c7443cbee3bcbdd0ab5a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/error.rs
@@ -13,7 +13,7 @@ pub struct RenderError {
pub template_name: Option<String>,
pub line_no: Option<usize>,
pub column_no: Option<usize>,
cause: Option<Box<Error + Send>>,
cause: Option<Box<Error + Send + Sync>>,
}

impl fmt::Display for RenderError {
@@ -69,7 +69,7 @@ impl RenderError {

pub fn with<E>(cause: E) -> RenderError
where
E: Error + Send + 'static,
E: Error + Send + Sync + 'static,
{
let mut e = RenderError::new(cause.description());
e.cause = Some(Box::new(cause));

0 comments on commit 4e24a37

Please sign in to comment.
You can’t perform that action at this time.