mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
Avoid unnecessary Option::expect indirection.
This commit is contained in:
@@ -492,7 +492,7 @@ impl Loop {
|
|||||||
|
|
||||||
Message::AddTimeout(at, slot) => {
|
Message::AddTimeout(at, slot) => {
|
||||||
slot.try_produce(self.add_timeout(at))
|
slot.try_produce(self.add_timeout(at))
|
||||||
.ok().expect("interference with try_produce on timeout");
|
.expect("interference with try_produce on timeout");
|
||||||
}
|
}
|
||||||
Message::UpdateTimeout(t, handle) => self.update_timeout(t, handle),
|
Message::UpdateTimeout(t, handle) => self.update_timeout(t, handle),
|
||||||
Message::CancelTimeout(t) => self.cancel_timeout(t),
|
Message::CancelTimeout(t) => self.cancel_timeout(t),
|
||||||
|
|||||||
Reference in New Issue
Block a user