File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,7 @@ pub struct ContainMatcher<T> {
29
29
element : T ,
30
30
}
31
31
32
- impl < T : std:: cmp:: PartialEq + std:: fmt:: Debug , V : Collection < T > + std:: fmt:: Debug > Matcher < V >
33
- for ContainMatcher < T >
34
- {
32
+ impl < T : std:: fmt:: Debug , V : Collection < T > + std:: fmt:: Debug > Matcher < V > for ContainMatcher < T > {
35
33
fn match_value ( & self , collection : & V ) -> bool {
36
34
collection. contains_element ( & self . element )
37
35
}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ pub fn be_none() -> NoneMatcher {
48
48
49
49
pub struct NoneMatcher { }
50
50
51
- impl < T : std:: cmp :: PartialEq + std :: fmt:: Debug > Matcher < Option < T > > for NoneMatcher {
51
+ impl < T : std:: fmt:: Debug > Matcher < Option < T > > for NoneMatcher {
52
52
fn match_value ( & self , actual : & Option < T > ) -> bool {
53
53
actual. is_none ( )
54
54
}
You can’t perform that action at this time.
0 commit comments