diff options
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | src/sys/event.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index b8ae74ca..c87b045e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Changed - The minimum supported version of rustc is now 1.7.0. ([#444](https://github.com/nix-rust/nix/pull/444)) +- Implement `Send` for `KEvent` + ([#442](https://github.com/nix-rust/nix/pull/442)) - Changed `KEvent` to an opaque structure that may only be modified by its constructor and the `ev_set` method. ([#415](https://github.com/nix-rust/nix/pull/415)) diff --git a/src/sys/event.rs b/src/sys/event.rs index 47d18389..68528c9e 100644 --- a/src/sys/event.rs +++ b/src/sys/event.rs @@ -192,11 +192,9 @@ pub fn kqueue() -> Result<RawFd> { } -/* - * KEvent can't derive Send because on some operating systems, udata is defined - * as a void*. However, KEvent's public API always treats udata as a uintptr_t, - * which is safe to Send. - */ +// KEvent can't derive Send because on some operating systems, udata is defined +// as a void*. However, KEvent's public API always treats udata as a uintptr_t, +// which is safe to Send. unsafe impl Send for KEvent { } |