From cabbbb2a0b98ea3529e23684a51a3aa378d729cc Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Sun, 15 Jan 2017 16:45:49 -0800 Subject: [PATCH] Fix some doc comments and remove unused impl. --- src/client.rs | 2 +- src/server.rs | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/client.rs b/src/client.rs index bc1b2ef..d648831 100644 --- a/src/client.rs +++ b/src/client.rs @@ -90,7 +90,7 @@ impl fmt::Debug for Client } } -/// Additional options to configure how the client connects. +/// Additional options to configure how the client connects and operates. #[derive(Clone, Default)] pub struct Options { reactor: Option, diff --git a/src/server.rs b/src/server.rs index d0a7975..35f5d05 100644 --- a/src/server.rs +++ b/src/server.rs @@ -17,7 +17,7 @@ use tokio_core::reactor::{self, Handle}; use tokio_proto::BindServer; use tokio_service::NewService; -/// Additional options to configure how the server starts up. +/// Additional options to configure how the server operates. #[derive(Clone, Default)] pub struct Options { reactor: Option, @@ -121,13 +121,6 @@ pub struct ListenFuture { future::FutureResult, futures::Canceled>>, } -impl ListenFuture { - #[doc(hidden)] - pub fn from_oneshot(rx: futures::Oneshot>) -> Self { - ListenFuture { inner: future::Either::A(rx) } - } -} - impl Future for ListenFuture { type Item = SocketAddr; type Error = io::Error;