fix span bug with enum structs in match arms