@@ -179,18 +179,18 @@ impl<T: PartialEq + Debug> Matcher for MyEqMatcher<T> {
179179
180180 fn matches(&self, actual: &Self::ActualT) -> MatcherResult {
181181 if self.expected == *actual {
182- MatcherResult::Matches
182+ MatcherResult::Match
183183 } else {
184- MatcherResult::DoesNotMatch
184+ MatcherResult::NoMatch
185185 }
186186 }
187187
188188 fn describe(&self, matcher_result: MatcherResult) -> String {
189189 match matcher_result {
190- MatcherResult::Matches => {
190+ MatcherResult::Match => {
191191 format!("is equal to {:?} the way I define it", self.expected)
192192 }
193- MatcherResult::DoesNotMatch => {
193+ MatcherResult::NoMatch => {
194194 format!("isn't equal to {:?} the way I define it", self.expected)
195195 }
196196 }
@@ -213,18 +213,18 @@ impl<T: PartialEq + Debug> Matcher for MyEqMatcher<T> {
213213 #
214214 # fn matches(&self, actual: &Self::ActualT) -> MatcherResult {
215215 # if self.expected == *actual {
216- # MatcherResult::Matches
216+ # MatcherResult::Match
217217 # } else {
218- # MatcherResult::DoesNotMatch
218+ # MatcherResult::NoMatch
219219 # }
220220 # }
221221 #
222222 # fn describe(&self, matcher_result: MatcherResult) -> String {
223223 # match matcher_result {
224- # MatcherResult::Matches => {
224+ # MatcherResult::Match => {
225225 # format!("is equal to {:?} the way I define it", self.expected)
226226 # }
227- # MatcherResult::DoesNotMatch => {
227+ # MatcherResult::NoMatch => {
228228 # format!("isn't equal to {:?} the way I define it", self.expected)
229229 # }
230230 # }
@@ -252,18 +252,18 @@ impl<T: PartialEq + Debug> Matcher for MyEqMatcher<T> {
252252#
253253# fn matches(&self, actual: &Self::ActualT) -> MatcherResult {
254254# if self.expected == *actual {
255- # MatcherResult::Matches
255+ # MatcherResult::Match
256256# } else {
257- # MatcherResult::DoesNotMatch
257+ # MatcherResult::NoMatch
258258# }
259259# }
260260#
261261# fn describe(&self, matcher_result: MatcherResult) -> String {
262262# match matcher_result {
263- # MatcherResult::Matches => {
263+ # MatcherResult::Match => {
264264# format!("is equal to {:?} the way I define it", self.expected)
265265# }
266- # MatcherResult::DoesNotMatch => {
266+ # MatcherResult::NoMatch => {
267267# format!("isn't equal to {:?} the way I define it", self.expected)
268268# }
269269# }
0 commit comments