fixed syntax error for pattern matching a struct

at least for Rust 0.9 this change seems to be necessary