Avoid unnecessary Option::expect indirection.

This commit is contained in:
Corey Farwell
2016-09-07 21:29:52 -04:00
parent 93e1d4778d
commit a9d24810be
+1 -1
View File
@@ -492,7 +492,7 @@ impl Loop {
Message::AddTimeout(at, slot) => {
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::CancelTimeout(t) => self.cancel_timeout(t),