From c976ca710aca7a59d9cda68f1062b23b83da67b4 Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Tue, 17 Jan 2017 15:35:25 -0800 Subject: [PATCH] Make private a couple items that no longer need to be public. --- src/lib.rs | 3 +-- src/server.rs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 13f2176..69f6f7f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -119,8 +119,7 @@ use tokio_core::reactor; lazy_static! { /// The `Remote` for the default reactor core. - #[doc(hidden)] - pub static ref REMOTE: reactor::Remote = { + static ref REMOTE: reactor::Remote = { spawn_core() }; } diff --git a/src/server.rs b/src/server.rs index 35f5d05..29e34a7 100644 --- a/src/server.rs +++ b/src/server.rs @@ -72,9 +72,9 @@ pub fn listen(new_service: S, addr: SocketAddr, options: Option } } } + /// Spawns a service that binds to the given address using the given handle. -#[doc(hidden)] -pub fn listen_with(new_service: S, +fn listen_with(new_service: S, addr: SocketAddr, handle: Handle) -> io::Result