diff options
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>, } |