Commit graph

5 commits

Author SHA1 Message Date
fbc64de607 Merge and reorder imports
This change brings them in-line with the default settings of
rust-analyzer. Originally, I disliked this style, but by now, I've grown
used to it and prefer it slightly. Also, I like staying on the default
path since I usually don't need to check the imports to see if
rust-analyzer messed anything up (except for omitting the self:: when
importing modules defined in the current module, grr :D).

I've also come around to the idea of trailing mod definitions instead of
putting them at the top: I would also put module definitions that
contain code instead of referencing another file below the imports. It
feels weird to have code above imports. So it just makes sense to do the
same for all types of mod definitions.

If rustfmt ever gains stable support for grouping imports, I'll probably
use that instead.
2025-02-21 12:46:25 +01:00
101d36cd45 Provide list of key groups in config crate
This also fixes the f1 menu not displaying the room group.
2023-04-30 22:12:21 +02:00
03c7fb567c Auto-derive Default for KeyGroups 2023-04-29 01:50:33 +02:00
458025b8bf Use serde's default annotation for Document 2023-04-27 20:11:16 +02:00
1276a82e54 Implement Group derive proc macro 2023-04-27 11:08:07 +02:00