Replace StreamEvent::Other with None.
Now StreamResponse stores an Option<StreamEvent> which can be None, instead of a StreamEvent which can be a sensible thing or Other. The idea is that, this way, I'm not so tempted to put a catch-all `_ =>` arm at the end of every match on a StreamEvent, which means in turn that when I add a new supported event type the compiler will be able to point out the places I need to handle it.
parent
24192373
No related branches found
No related tags found
Loading
Please register or sign in to comment