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:
Kevin Krakauer
2022-11-08 13:14:06 -08:00
committed by gVisor bot
parent c82b70015d
commit d8aa09e04c
220 changed files with 509 additions and 509 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ type response struct {
}
var responsePool = sync.Pool{
New: func() interface{} {
New: func() any {
return &response{
done: make(chan error, 1),
}
+1 -1
View File
@@ -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
View File
@@ -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).