Skip to content

Commit f6030bd

Browse files
author
Bryant Mairs
committed
Use |= where appropriate
1 parent 676f640 commit f6030bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sys/socket/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ pub fn socket<T: Into<Option<SockProtocol>>>(domain: AddressFamily, ty: SockType
666666
let feat_atomic = features::socket_atomic_cloexec();
667667

668668
if feat_atomic {
669-
ty = ty | flags.bits();
669+
ty |= flags.bits();
670670
}
671671

672672
// TODO: Check the kernel version
@@ -709,7 +709,7 @@ pub fn socketpair<T: Into<Option<SockProtocol>>>(domain: AddressFamily, ty: Sock
709709
let feat_atomic = features::socket_atomic_cloexec();
710710

711711
if feat_atomic {
712-
ty = ty | flags.bits();
712+
ty |= flags.bits();
713713
}
714714
let mut fds = [-1, -1];
715715
let res = unsafe {

0 commit comments

Comments
 (0)