Merge pull request #465 from blaenk/join-guard
fix(server): JoinHandle type parameter
This commit is contained in:
@@ -181,10 +181,7 @@ where S: NetworkStream + Clone, H: Handler {
|
|||||||
|
|
||||||
/// A listening server, which can later be closed.
|
/// A listening server, which can later be closed.
|
||||||
pub struct Listening {
|
pub struct Listening {
|
||||||
#[cfg(feature = "nightly")]
|
|
||||||
_guard: Option<JoinHandle<()>>,
|
_guard: Option<JoinHandle<()>>,
|
||||||
#[cfg(not(feature = "nightly"))]
|
|
||||||
_guard: Option<JoinHandle>,
|
|
||||||
/// The socket addresses that the server is bound to.
|
/// The socket addresses that the server is bound to.
|
||||||
pub socket: SocketAddr,
|
pub socket: SocketAddr,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user