Skip to content

Commit c694b13

Browse files
committed
fix(server): JoinHandle type parameter
The new beta adopts the new `JoinHandle` API which has a type parameter.
1 parent 86359a5 commit c694b13

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/server/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,7 @@ where S: NetworkStream + Clone, H: Handler {
181181

182182
/// A listening server, which can later be closed.
183183
pub struct Listening {
184-
#[cfg(feature = "nightly")]
185184
_guard: Option<JoinHandle<()>>,
186-
#[cfg(not(feature = "nightly"))]
187-
_guard: Option<JoinHandle>,
188185
/// The socket addresses that the server is bound to.
189186
pub socket: SocketAddr,
190187
}

0 commit comments

Comments
 (0)