Support scoped enum variants

Rust recently made a change to support enum variants, so I had to change
this code to make it work with the new syntax. #preRustOnePoint0Problems