Skip to content

--generate-config panics #79

Description

@jluner
> cargo install tarts
    Updating crates.io index
  Downloaded tarts v0.1.24
> tarts --generate-config

thread 'main' panicked at C:\...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tarts-0.1.24\src\config.rs:184:66:
called `Result::unwrap()` on an `Err` value: UninitializedField("drops_range")

It looks like the Builder default keeps fields uninitialized, so trying to finalize just the default builder will always panic. Some reasonable default values will need to be selected for each animation.

Ideally the config file would be forward-compatible with future changes so that new animations or new options on existing animations would not cause loading a config file from an older version of the program to also fail.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions