Skip to content

Improving the preferences loading

Tom Gouville requested to merge TomG/grace:dev into dev

Merge request conformity

  • The code is clean (no unused variables, no commented code, no debug code)
  • The code is documented
  • The code is tested
  • The code is formatted using cargo fmt
  • The code is linted using cargo clippy
  • The target branch for the merge request is the good one (eg. not master if you are not planning on making a release)

This merge request reduces code duplication in src/interface/preferences.rs, adds a struct to store the values of the preferences and serializes it to json and create the config file if it doesn't exist (with default values).

Some other files have been modified to accommodate to the latest clippy suggestions.

Merge request reports