diff options
author | Griffin Smith <root@gws.fyi> | 2019-07-20T01·55-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-07-20T01·55-0400 |
commit | 29c80ac8ba0d733c6c452d8fd39e9561553495b0 (patch) | |
tree | f8384229d84b0d281c2fbbe976aeb5ebc21bdc24 /src/display/color.rs | |
parent | 4e9138aa6ff72e34392e3467c40d5ddf095f0027 (diff) |
Add the beginning of item entities
Add a new Item raw type and entity type, with preliminary, basic support for food. There's a really frustrating toml-rs bug that prevents writing these nicely as toml right now, so I also added support for mixing JSON and TOML in a single config dir
Diffstat (limited to 'src/display/color.rs')
-rw-r--r-- | src/display/color.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/display/color.rs b/src/display/color.rs index 7de1f124b704..7d024a960d97 100644 --- a/src/display/color.rs +++ b/src/display/color.rs @@ -35,6 +35,12 @@ impl<'a> color::Color for &'a Color { } } +impl Default for Color { + fn default() -> Self { + Color::new(color::Reset) + } +} + pub struct ColorVisitor { marker: PhantomData<fn() -> Color>, } |