summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/select.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/select.rs b/src/sys/select.rs
index 1d9a76c1..eae191b6 100644
--- a/src/sys/select.rs
+++ b/src/sys/select.rs
@@ -43,7 +43,7 @@ impl FdSet {
self.bits[fd / BITS] &= !(1 << (fd % BITS));
}
- pub fn contains(&mut self, fd: RawFd) -> bool {
+ pub fn contains(&self, fd: RawFd) -> bool {
let fd = fd as usize;
self.bits[fd / BITS] & (1 << (fd % BITS)) > 0
}