Skip to content

Commit aa42663

Browse files
committed
Implement Clone for FdSet on Mac/iOS
1 parent 6ffe71e commit aa42663

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sys/select.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub const FD_SETSIZE: RawFd = 1024;
88

99
#[cfg(any(target_os = "macos", target_os = "ios"))]
1010
#[repr(C)]
11+
#[derive(Clone)]
1112
pub struct FdSet {
1213
bits: [i32; FD_SETSIZE as usize / 32]
1314
}

0 commit comments

Comments
 (0)