diff --git a/src/lib.rs b/src/lib.rs index dabfd5e..bca0505 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -61,7 +61,7 @@ impl convert::From> for Error { pub type Result = std::result::Result; -pub fn handle_conn(stream: TcpStream, f: F) -> Result<()> +fn handle_conn(stream: TcpStream, f: F) -> Result<()> where Request: 'static + fmt::Debug + Send + serde::de::Deserialize + serde::ser::Serialize, Reply: 'static + fmt::Debug + serde::ser::Serialize, F: 'static + Clone + Serve