Skip to content

Commit a0058f0

Browse files
asomersposborne
authored andcommitted
Update comments and CHANGELOG for PR 442
1 parent 76bd1c4 commit a0058f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2020
### Changed
2121
- The minimum supported version of rustc is now 1.7.0.
2222
([#444](https://github.com/nix-rust/nix/pull/444))
23+
- Implement `Send` for `KEvent`
24+
([#442](https://github.com/nix-rust/nix/pull/442))
2325
- Changed `KEvent` to an opaque structure that may only be modified by its
2426
constructor and the `ev_set` method.
2527
([#415](https://github.com/nix-rust/nix/pull/415))

src/sys/event.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,9 @@ pub fn kqueue() -> Result<RawFd> {
192192
}
193193

194194

195-
/*
196-
* KEvent can't derive Send because on some operating systems, udata is defined
197-
* as a void*. However, KEvent's public API always treats udata as a uintptr_t,
198-
* which is safe to Send.
199-
*/
195+
// KEvent can't derive Send because on some operating systems, udata is defined
196+
// as a void*. However, KEvent's public API always treats udata as a uintptr_t,
197+
// which is safe to Send.
200198
unsafe impl Send for KEvent {
201199
}
202200

0 commit comments

Comments
 (0)