diff options
| author | Joe Ellis <joe.ellis@arm.com> | 2020-08-05 12:18:32 +0100 |
|---|---|---|
| committer | Joe Ellis <joe.ellis@arm.com> | 2020-09-14 10:31:56 +0100 |
| commit | a9ec61db17b68c07816ef1be90e5d138597899e4 (patch) | |
| tree | 4926df472e5046fb71f6c37889486e0d0a5d332e /library/std/src/sys/unix/ext/net.rs | |
| parent | ed20eff92be7bcd29ddc74f6bfa603f6698c9504 (diff) | |
| download | rust-a9ec61db17b68c07816ef1be90e5d138597899e4.tar.gz rust-a9ec61db17b68c07816ef1be90e5d138597899e4.zip | |
Remove use of `MaybeUninit` in `ucred.rs`
We can simply init the struct directly. There is no real need to use uninit memory here.
Diffstat (limited to 'library/std/src/sys/unix/ext/net.rs')
| -rw-r--r-- | library/std/src/sys/unix/ext/net.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/ext/net.rs b/library/std/src/sys/unix/ext/net.rs index 930a6797000..ac8d6cf53ff 100644 --- a/library/std/src/sys/unix/ext/net.rs +++ b/library/std/src/sys/unix/ext/net.rs @@ -433,6 +433,7 @@ impl UnixStream { /// # Examples /// /// ```no_run + /// #![feature(peer_credentials_unix_socket)] /// use std::os::unix::net::UnixStream; /// /// fn main() -> std::io::Result<()> { |
