Skip to content
Snippets Groups Projects
Commit 07a5b423 authored by Simon Tatham's avatar Simon Tatham
Browse files

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
1 merge request!25Major refactoring to handle posts being deleted.
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment