I'd wrap the whole `match` in an `unsafe` block to avoid having to repeat this a lot. Also, Rust convention is for 4 space indents.