Move from if/then to match statments
Move from if/then to match statments

The gain here is moving to a more functional and language specific style. The if/then statements worked just fine but didn't appear very rust-esque.

brianp/muxed,brianp/muxed