From 4e161a4d401224507513bfbf33b22f0b72f8ba81 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 16 Sep 2013 21:18:07 -0400 Subject: switch Drop to `&mut self` --- src/libstd/rt/uv/uvio.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/libstd/rt/uv') diff --git a/src/libstd/rt/uv/uvio.rs b/src/libstd/rt/uv/uvio.rs index b930ea2437e..f3b97441e8e 100644 --- a/src/libstd/rt/uv/uvio.rs +++ b/src/libstd/rt/uv/uvio.rs @@ -187,7 +187,7 @@ impl UvEventLoop { } impl Drop for UvEventLoop { - fn drop(&self) { + fn drop(&mut self) { // XXX: Need mutable finalizer let this = unsafe { transmute::<&UvEventLoop, &mut UvEventLoop>(self) @@ -351,7 +351,7 @@ impl RemoteCallback for UvRemoteCallback { } impl Drop for UvRemoteCallback { - fn drop(&self) { + fn drop(&mut self) { unsafe { let this: &mut UvRemoteCallback = cast::transmute_mut(self); do this.exit_flag.with |should_exit| { @@ -647,7 +647,7 @@ impl UvTcpListener { } impl Drop for UvTcpListener { - fn drop(&self) { + fn drop(&mut self) { // XXX need mutable finalizer let self_ = unsafe { transmute::<&UvTcpListener, &mut UvTcpListener>(self) }; do self_.home_for_io_with_sched |self_, scheduler| { @@ -762,7 +762,7 @@ impl HomingIO for UvTcpStream { } impl Drop for UvTcpStream { - fn drop(&self) { + fn drop(&mut self) { // XXX need mutable finalizer let this = unsafe { transmute::<&UvTcpStream, &mut UvTcpStream>(self) }; do this.home_for_io_with_sched |self_, scheduler| { @@ -921,7 +921,7 @@ impl HomingIO for UvUdpSocket { } impl Drop for UvUdpSocket { - fn drop(&self) { + fn drop(&mut self) { // XXX need mutable finalizer let this = unsafe { transmute::<&UvUdpSocket, &mut UvUdpSocket>(self) }; do this.home_for_io_with_sched |self_, scheduler| { @@ -1139,7 +1139,7 @@ impl UvTimer { } impl Drop for UvTimer { - fn drop(&self) { + fn drop(&mut self) { let self_ = unsafe { transmute::<&UvTimer, &mut UvTimer>(self) }; do self_.home_for_io_with_sched |self_, scheduler| { rtdebug!("closing UvTimer"); @@ -1253,7 +1253,7 @@ impl UvFileStream { } impl Drop for UvFileStream { - fn drop(&self) { + fn drop(&mut self) { let self_ = unsafe { transmute::<&UvFileStream, &mut UvFileStream>(self) }; if self.close_on_drop { do self_.home_for_io_with_sched |self_, scheduler| { -- cgit 1.4.1-3-g733a5