1 parent c5d681c commit 49a2e02Copy full SHA for 49a2e02
1 file changed
matchers/matchers.go
@@ -12,5 +12,5 @@ import (
12
// will cause an ambiguity and gocmp will panic. Use a custom wrapper option in
13
// this case.
14
func DiffEq(x any, opts ...cmp.Option) gomock.Matcher {
15
- return cmpmock.DiffEq(x, append(opts, placeholders.Comparer())...)
+ return cmpmock.DiffEq(x, placeholders.Comparer(), cmp.Options(opts))
16
}
0 commit comments