Note that the formatting style can be tweaked by settings in rustfmt.toml, but I thought easiest to start off with the standard settings. Personally I don't particularly like trailing commas, but that seems to be the preferred Rust style so I'll try to go with it and see if I get used to it!
Generally good practice to use rustfmt to give consistent formatting throughout the codebase. See what you think.
I used:
Note that the formatting style can be tweaked by settings in rustfmt.toml, but I thought easiest to start off with the standard settings. Personally I don't particularly like trailing commas, but that seems to be the preferred Rust style so I'll try to go with it and see if I get used to it!