fix(server): JoinHandle type parameter

The new beta adopts the new `JoinHandle` API which has a type parameter.
This commit is contained in:
Jorge Israel Peña
2015-04-17 14:31:54 -07:00
parent 86359a56a1
commit c694b1385b

View File

@@ -181,10 +181,7 @@ where S: NetworkStream + Clone, H: Handler {
/// A listening server, which can later be closed.
pub struct Listening {
#[cfg(feature = "nightly")]
_guard: Option<JoinHandle<()>>,
#[cfg(not(feature = "nightly"))]
_guard: Option<JoinHandle>,
/// The socket addresses that the server is bound to.
pub socket: SocketAddr,
}