Reformat code

This commit is contained in:
世界 2025-09-15 18:12:47 +08:00
parent 558e1e0493
commit d79d3c88fd
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
8 changed files with 11 additions and 22 deletions

View file

@ -213,10 +213,8 @@ func (s *StdNetBind) getMessages() *[]ipv6.Message {
return s.msgsPool.Get().(*[]ipv6.Message)
}
var (
// If compilation fails here these are no longer the same underlying type.
_ ipv6.Message = ipv4.Message{}
)
// If compilation fails here these are no longer the same underlying type.
var _ ipv6.Message = ipv4.Message{}
type batchReader interface {
ReadBatch([]ipv6.Message, int) (int, error)