internal/poll: omit embedded type field in splicePipe construction

As flagged by the modernize linter.

Change-Id: Iba6ea62d617f7e3622773c76a47655f1ad8be0e5
Reviewed-on: https://go-review.googlesource.com/c/go/+/779661
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Tobias Klauser 2026-05-19 11:32:07 +02:00 committed by Gopher Robot
parent 4136ffed69
commit c3f7d75877

View file

@ -234,7 +234,7 @@ func newPipe() *splicePipe {
// although it will require more system calls.
unix.Fcntl(fds[0], syscall.F_SETPIPE_SZ, maxSpliceSize)
return &splicePipe{splicePipeFields: splicePipeFields{rfd: fds[0], wfd: fds[1]}}
return &splicePipe{rfd: fds[0], wfd: fds[1]}
}
// destroyPipe destroys a pipe.