summaryrefslogtreecommitdiff
path: root/src/sys/socket/mod.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2019-08-19 16:53:27 -0600
committerAlan Somers <asomers@gmail.com>2019-08-29 10:06:04 -0600
commit4a8edd6fcdf3cfd40dd47069a96dc60869efc987 (patch)
tree068e5f5e47df713209ec1f58dfb6813e54eebcba /src/sys/socket/mod.rs
parent64e9e8f05c9b0402f31d6316960a214b64c09527 (diff)
downloadnix-4a8edd6fcdf3cfd40dd47069a96dc60869efc987.zip
Implement Default for FdSet
Diffstat (limited to 'src/sys/socket/mod.rs')
-rw-r--r--src/sys/socket/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs
index 8dc8a5ca..662d8803 100644
--- a/src/sys/socket/mod.rs
+++ b/src/sys/socket/mod.rs
@@ -344,6 +344,8 @@ impl<T> CmsgSpace<T> {
/// Create a CmsgSpace<T>. The structure is used only for space, so
/// the fields are uninitialized.
#[deprecated( since="0.14.0", note="Use the cmsg_space! macro instead")]
+ // It's deprecated anyway; no sense adding Default
+ #[allow(clippy::new_without_default)]
pub fn new() -> Self {
// Safe because the fields themselves aren't accessible.
unsafe { mem::uninitialized() }