update enums to build against latest rust.

Verified the demo runs.