From 930885d5e5f817e3d7609f93d5ba89b1abebfaf4 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 9 Aug 2013 01:25:24 -0700 Subject: Forbid pub/priv where it has no effect Closes #5495 --- src/libstd/rt/io/comm_adapters.rs | 4 ++-- src/libstd/rt/uv/mod.rs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/libstd/rt') diff --git a/src/libstd/rt/io/comm_adapters.rs b/src/libstd/rt/io/comm_adapters.rs index 6a3e44b2a4d..06424fee8bc 100644 --- a/src/libstd/rt/io/comm_adapters.rs +++ b/src/libstd/rt/io/comm_adapters.rs @@ -31,9 +31,9 @@ impl> ChanWriter { } impl> Writer for ChanWriter { - pub fn write(&mut self, _buf: &[u8]) { fail!() } + fn write(&mut self, _buf: &[u8]) { fail!() } - pub fn flush(&mut self) { fail!() } + fn flush(&mut self) { fail!() } } struct ReaderPort; diff --git a/src/libstd/rt/uv/mod.rs b/src/libstd/rt/uv/mod.rs index ae5e7dd27b5..6c5a28b31b1 100644 --- a/src/libstd/rt/uv/mod.rs +++ b/src/libstd/rt/uv/mod.rs @@ -90,8 +90,8 @@ pub trait Request { } /// A type that wraps a native handle pub trait NativeHandle { - pub fn from_native_handle(T) -> Self; - pub fn native_handle(&self) -> T; + fn from_native_handle(T) -> Self; + fn native_handle(&self) -> T; } impl Loop { @@ -155,7 +155,7 @@ pub trait WatcherInterop { impl> WatcherInterop for W { /// Get the uv event loop from a Watcher - pub fn event_loop(&self) -> Loop { + fn event_loop(&self) -> Loop { unsafe { let handle = self.native_handle(); let loop_ = uvll::get_loop_for_uv_handle(handle); @@ -163,7 +163,7 @@ impl> WatcherInterop for W { } } - pub fn install_watcher_data(&mut self) { + fn install_watcher_data(&mut self) { unsafe { let data = ~WatcherData { read_cb: None, @@ -182,7 +182,7 @@ impl> WatcherInterop for W { } } - pub fn get_watcher_data<'r>(&'r mut self) -> &'r mut WatcherData { + fn get_watcher_data<'r>(&'r mut self) -> &'r mut WatcherData { unsafe { let data = uvll::get_data_for_uv_handle(self.native_handle()); let data = transmute::<&*c_void, &mut ~WatcherData>(&data); @@ -190,7 +190,7 @@ impl> WatcherInterop for W { } } - pub fn drop_watcher_data(&mut self) { + fn drop_watcher_data(&mut self) { unsafe { let data = uvll::get_data_for_uv_handle(self.native_handle()); let _data = transmute::<*c_void, ~WatcherData>(data); -- cgit 1.4.1-3-g733a5