Sort default context items categorically (#465)

* Sort default context items categorically

* Separate commands in multiple statements

* Use curly braces instead of square brackets

This prevents undesired reformatting.
This commit is contained in:
Benoît Cortier
2021-12-10 22:07:39 -05:00
committed by GitHub
parent 3df5e63c05
commit d0119ea05d
3 changed files with 169 additions and 108 deletions

View File

@ -50,6 +50,7 @@ pub enum Category {
System,
Viewers,
Hash,
Generators,
Custom(String),
}
@ -74,6 +75,7 @@ impl std::fmt::Display for Category {
Category::System => "system",
Category::Viewers => "viewers",
Category::Hash => "hash",
Category::Generators => "generators",
Category::Custom(name) => name,
};