Skip to content

Commit 8e743bb

Browse files
committed
uv: Remove closure-based home_for_io for raii
Using an raii wrapper means that there's no need for a '_self' variant and we can greatly reduce the amount of 'self_'-named variables.
1 parent 69a8559 commit 8e743bb

File tree

2 files changed

+320
-387
lines changed

2 files changed

+320
-387
lines changed

src/librustuv/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ pub trait NativeHandle<T> {
117117
fn from_native_handle(h: *T) -> Self;
118118
fn native_handle(&self) -> *T;
119119

120-
// FIXME(#8888) dummy self
121120
fn alloc(ty: uvll::uv_handle_type) -> Self {
122121
unsafe {
123122
NativeHandle::from_native_handle(uvll::malloc_handle(ty) as *T)

0 commit comments

Comments
 (0)