Skip to content

Commit f801c0b

Browse files
committed
Remove unused type constraints
1 parent 0197e4e commit f801c0b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/matchers/collection.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ pub struct ContainMatcher<T> {
2929
element: T,
3030
}
3131

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> {
3533
fn match_value(&self, collection: &V) -> bool {
3634
collection.contains_element(&self.element)
3735
}

src/matchers/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub fn be_none() -> NoneMatcher {
4848

4949
pub struct NoneMatcher {}
5050

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 {
5252
fn match_value(&self, actual: &Option<T>) -> bool {
5353
actual.is_none()
5454
}

0 commit comments

Comments
 (0)