mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
convert uses of interface{} to any
Done via:
find . -name "*.go" | xargs sed -i -E 's/interface\{\}/any/g'
PiperOrigin-RevId: 487033228
This commit is contained in:
committed by
gVisor bot
parent
c82b70015d
commit
d8aa09e04c
+1
-1
@@ -61,7 +61,7 @@ type response struct {
|
||||
}
|
||||
|
||||
var responsePool = sync.Pool{
|
||||
New: func() interface{} {
|
||||
New: func() any {
|
||||
return &response{
|
||||
done: make(chan error, 1),
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ func (m *Mock) RemoveChild(name string) {
|
||||
}
|
||||
|
||||
// Matches implements gomock.Matcher.Matches.
|
||||
func (m *Mock) Matches(x interface{}) bool {
|
||||
func (m *Mock) Matches(x any) bool {
|
||||
if om, ok := x.(*Mock); ok {
|
||||
return m.QID.Path == om.QID.Path
|
||||
}
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ const (
|
||||
)
|
||||
|
||||
var dataPool = sync.Pool{
|
||||
New: func() interface{} {
|
||||
New: func() any {
|
||||
// These buffers are used for decoding without a payload.
|
||||
// We need to return a pointer to avoid unnecessary allocations
|
||||
// (see https://staticcheck.io/docs/checks#SA6002).
|
||||
|
||||
Reference in New Issue
Block a user