You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`CnfMeta::mode` was a public field that resolved an absent `c t` line to
`Mc`, so `c t mc` and a file with no header at all read back
identically.
A consumer that varies its own defaults between a competition instance
and a
plain CNF had nothing to key on — and the show set and the weights
already
answer the same question with an `Option`.
The track is now stored as `Option<Mode>` behind two accessors:
`CnfMeta::declared_track` reports the line the file carried, and
`CnfMeta::mode` reports the track to read the file as, still resolving
an
absent line to `Mc`. `CnfMeta::from_parts` takes the option as well, so
metadata assembled in process can state absence the way a parsed file
does.
This replaces the public field, so a caller reading a track moves to
`mode()`, and one that needs to know whether the file said so moves to
`declared_track()`. Inside the crate only mode detection in
`resolve_mode`
read it.
0 commit comments