Skip to content

Commit

Permalink
Merge pull request #130 from smoelius/master
Browse files Browse the repository at this point in the history
feat: Refine `append_context` bounds
  • Loading branch information
epage authored Aug 5, 2021
2 parents 7a864d1 + 5bef0d2 commit 1c37715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl fmt::Display for AssertError {
/// [`Output`]: std::process::Output
pub struct Assert {
output: process::Output,
context: Vec<(&'static str, Box<dyn fmt::Display>)>,
context: Vec<(&'static str, Box<dyn fmt::Display + Send + Sync>)>,
}

impl Assert {
Expand Down Expand Up @@ -218,7 +218,7 @@ impl Assert {
/// ```
pub fn append_context<D>(mut self, name: &'static str, context: D) -> Self
where
D: fmt::Display + 'static,
D: fmt::Display + Send + Sync + 'static,
{
self.context.push((name, Box::new(context)));
self
Expand Down

0 comments on commit 1c37715

Please sign in to comment.