Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions matest/matest.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

type TestingT interface {
Errorf(format string, args ...interface{})
Errorf(format string, args ...any)
}

type tHelper interface {
Expand Down Expand Up @@ -75,7 +75,7 @@ type MultiaddrMatcher struct {
// Implements the Matcher interface for gomock.Matcher
// Let's us use this struct in gomock tests. Example:
// Expect(mock.Method(gomock.Any(), multiaddrMatcher).Return(nil)
func (m MultiaddrMatcher) Matches(x interface{}) bool {
func (m MultiaddrMatcher) Matches(x any) bool {
if m2, ok := x.(multiaddr.Multiaddr); ok {
return m.Equal(m2)
}
Expand Down