diff options
-rw-r--r-- | CHANGELOG.md | 8 | ||||
-rw-r--r-- | src/sys/select.rs | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3db05552..a4310d47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Removed `revents` argument from `PollFd::new()` as it's an output argument and will be overwritten regardless of value. ([#542](https://github.com/nix-rust/nix/pull/542)) +- Changed type signature of `sys::select::FdSet::contains` to make `self` + immutable ([#564](https://github.com/nix-rust/nix/pull/564)) ### Fixed - Fixed multiple issues compiling under different archetectures and OSes. @@ -27,6 +29,12 @@ This project adheres to [Semantic Versioning](http://semver.org/). `NetBSD/x64_64` ([#538](https://github.com/nix-rust/nix/pull/538)), and `FreeBSD/x86_64,i686` ([#536](https://github.com/nix-rust/nix/pull/536)). +## [0.8.1] 2017-04-16 + +### Fixed +- Fixed build on FreeBSD. (Cherry-picked + [a859ee3c](https://github.com/nix-rust/nix/commit/a859ee3c9396dfdb118fcc2c8ecc697e2d303467)) + ## [0.8.0] 2017-03-02 ### Added 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 } |