summaryrefslogtreecommitdiffstats
path: root/src/style.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/style.rs')
-rw-r--r--src/style.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/style.rs b/src/style.rs
index 8fb9b2eb..4f590f0f 100644
--- a/src/style.rs
+++ b/src/style.rs
@@ -6,7 +6,7 @@ use lazy_static::lazy_static;
use crate::ansi;
use crate::color;
-#[derive(Clone, Copy, Debug, PartialEq)]
+#[derive(Clone, Copy, Debug, PartialEq, Default)]
pub struct Style {
pub ansi_term_style: ansi_term::Style,
pub is_emph: bool,
@@ -28,6 +28,12 @@ pub enum DecorationStyle {
NoDecoration,
}
+impl Default for DecorationStyle {
+ fn default() -> Self {
+ Self::NoDecoration
+ }
+}
+
impl Style {
pub fn new() -> Self {
Self {