Skip to content

Commit

Permalink
Test code in volatile_cell is feature=replayer now
Browse files Browse the repository at this point in the history
  • Loading branch information
farcaller committed Jul 9, 2015
1 parent 39b90c6 commit 539584a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions volatile_cell/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,18 +253,21 @@ pub fn with_mut_replayer<F>(f: F) where F: core::ops::FnOnce(&mut VolatileCellRe
});
}

#[cfg(feature="replayer")]
struct BeEqualToWithContext<E> {
expected: E,
context: String,
}

#[cfg(feature="replayer")]
fn be_equal_to_with_context<E>(expected: E, context: String) -> BeEqualToWithContext<E> {
BeEqualToWithContext {
expected: expected,
context: context,
}
}

#[cfg(feature="replayer")]
impl<A, E> Matcher<A, E> for BeEqualToWithContext<E>
where
A: PartialEq<E> + fmt::Debug,
Expand Down

0 comments on commit 539584a

Please sign in to comment.