mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-07 00:00:09 +02:00
signal: Don't use the depreceated new method of Registration
This commit is contained in:
committed by
Carl Lerche
parent
484fda7a23
commit
9a4e4f2308
+2
-1
@@ -324,7 +324,8 @@ impl mio::Evented for MyRegistration {
|
||||
events: mio::Ready,
|
||||
opts: mio::PollOpt,
|
||||
) -> io::Result<()> {
|
||||
let reg = mio::Registration::new(poll, token, events, opts);
|
||||
let reg = mio::Registration::new2();
|
||||
reg.0.register(poll, token, events, opts)?;
|
||||
*self.inner.borrow_mut() = Some(reg);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user