internal/poll: omit embedded type field in splicePipe construction
As flagged by the modernize linter.
diff --git a/src/internal/poll/splice_linux.go b/src/internal/poll/splice_linux.go
index 4409d2f..6de3511 100644
--- a/src/internal/poll/splice_linux.go
+++ b/src/internal/poll/splice_linux.go
@@ -234,7 +234,7 @@
// 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.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |