signal: Don't use the depreceated new method of Registration

This commit is contained in:
Markus Westerlind 2018-05-06 21:31:16 +02:00 committed by Carl Lerche
parent 484fda7a23
commit 9a4e4f2308

View File

@ -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(())
}