diff options
author | Bryant Mairs <bryantmairs@google.com> | 2017-12-16 09:54:17 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2017-12-20 07:05:04 -0800 |
commit | 31366291b8bfbf06df8c2bca9e0f16f163605bd5 (patch) | |
tree | 64355fb64b2e599b185e3d25ace5ea0d82b983c6 | |
parent | 86d1801922cd6532d17939abad17db191db5c752 (diff) | |
download | nix-31366291b8bfbf06df8c2bca9e0f16f163605bd5.zip |
Use |= where appropriate
-rw-r--r-- | src/sys/socket/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index 049965e5..1e84854f 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -689,7 +689,7 @@ pub fn socket<T: Into<Option<SockProtocol>>>(domain: AddressFamily, ty: SockType let feat_atomic = features::socket_atomic_cloexec(); if feat_atomic { - ty = ty | flags.bits(); + ty |= flags.bits(); } // TODO: Check the kernel version @@ -732,7 +732,7 @@ pub fn socketpair<T: Into<Option<SockProtocol>>>(domain: AddressFamily, ty: Sock let feat_atomic = features::socket_atomic_cloexec(); if feat_atomic { - ty = ty | flags.bits(); + ty |= flags.bits(); } let mut fds = [-1, -1]; let res = unsafe { |