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

This commit is contained in:
Markus Westerlind
2018-09-10 11:30:04 -07:00
committed by Carl Lerche
parent 484fda7a23
commit 9a4e4f2308
+2 -1
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(())
}