Skip to content

Commit 40210dc

Browse files
committed
Fix clippy checks
1 parent e69a2cd commit 40210dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

googletest/src/matcher_support/auto_ref_eq.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ macro_rules! __auto_ref_eq {
3131
ExpectedKind, MatcherKind,
3232
};
3333
match $e {
34-
expected => (&expected).kind().new(expected),
34+
expected => (&expected).kind().matcher(expected),
3535
}
3636
}};
3737
}
@@ -57,7 +57,7 @@ pub mod internal {
5757

5858
impl MatcherTag {
5959
#[inline]
60-
pub fn new<M>(self, matcher: M) -> M {
60+
pub fn matcher<M>(self, matcher: M) -> M {
6161
matcher
6262
}
6363
}
@@ -75,7 +75,7 @@ pub mod internal {
7575

7676
impl ExpectedTag {
7777
#[inline]
78-
pub fn new<T>(self, expected: T) -> EqMatcher<T> {
78+
pub fn matcher<T>(self, expected: T) -> EqMatcher<T> {
7979
eq(expected)
8080
}
8181
}

googletest/src/matchers/unordered_elements_are_matcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ pub mod internal {
371371
}
372372

373373
impl Requirements {
374-
fn explain_size_mismatch<ContainerT: ?Sized + IntoIterator + Copy>(
374+
fn explain_size_mismatch<ContainerT: IntoIterator + Copy>(
375375
&self,
376376
actual: ContainerT,
377377
expected_size: usize,

0 commit comments

Comments
 (0)