SleepySwords/do_todo

Deserialization panicking on changes

Closed this issue · 1 comments

What I noticed when working on #46 is that when I tried launching the app, it panicked at deserialization because the new auto_sort field wasn't found in the old data. The only way to fix that at the moment is to manually edit the data file, which isn't what a normal person would know about.

I would say fixing this is a priority for now.

Adding #[serde(default)] on the deserializable structs should fix the issue