Skip to content

Commit 116b397

Browse files
committed
Warning from tokio
1 parent 8113c52 commit 116b397

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ntex-tokio/src/io.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ pub struct SocketOptions(Weak<RefCell<TcpStream>>);
257257

258258
impl SocketOptions {
259259
pub fn set_linger(&self, dur: Option<Millis>) -> io::Result<()> {
260+
#[allow(deprecated)]
260261
self.try_self()
261262
.and_then(|s| s.borrow().set_linger(dur.map(|d| d.into())))
262263
}

0 commit comments

Comments
 (0)