Skip to content

Commit 13a25b0

Browse files
hovinenbcopybara-github
authored andcommitted
Fix a Clippy warning.
Invoking `PhantomData::default()` causes a warning since `PhantomData` could be instantiated directly. This changes the one invocation to `Default::default()` to be consistent with the rest of the library. PiperOrigin-RevId: 558086194
1 parent f1ca25f commit 13a25b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

googletest/src/matchers/subset_of_matcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ where
8484
for<'a> &'a ActualT: IntoIterator<Item = &'a ElementT>,
8585
for<'a> &'a ExpectedT: IntoIterator<Item = &'a ElementT>,
8686
{
87-
SubsetOfMatcher::<ActualT, _> { superset, phantom: PhantomData::default() }
87+
SubsetOfMatcher::<ActualT, _> { superset, phantom: Default::default() }
8888
}
8989

9090
struct SubsetOfMatcher<ActualT: ?Sized, ExpectedT> {

0 commit comments

Comments
 (0)