File tree 2 files changed +3
-1
lines changed 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
18
18
- Removed ` revents ` argument from ` PollFd::new() ` as it's an output argument and
19
19
will be overwritten regardless of value.
20
20
([ #542 ] ( https://github.com/nix-rust/nix/pull/542 ) )
21
+ - Changed type signature of ` sys::select::FdSet::contains ` to make ` self `
22
+ immutable ([ #564 ] ( https://github.com/nix-rust/nix/pull/564 ) )
21
23
22
24
### Fixed
23
25
- Fixed multiple issues compiling under different archetectures and OSes.
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ impl FdSet {
43
43
self . bits [ fd / BITS ] &= !( 1 << ( fd % BITS ) ) ;
44
44
}
45
45
46
- pub fn contains ( & mut self , fd : RawFd ) -> bool {
46
+ pub fn contains ( & self , fd : RawFd ) -> bool {
47
47
let fd = fd as usize ;
48
48
self . bits [ fd / BITS ] & ( 1 << ( fd % BITS ) ) > 0
49
49
}
You can’t perform that action at this time.
0 commit comments