We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8113c52 commit 116b397Copy full SHA for 116b397
ntex-tokio/src/io.rs
@@ -257,6 +257,7 @@ pub struct SocketOptions(Weak<RefCell<TcpStream>>);
257
258
impl SocketOptions {
259
pub fn set_linger(&self, dur: Option<Millis>) -> io::Result<()> {
260
+ #[allow(deprecated)]
261
self.try_self()
262
.and_then(|s| s.borrow().set_linger(dur.map(|d| d.into())))
263
}
0 commit comments