diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-29 18:34:02 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-30 16:55:38 -0400 |
commit | f5e7b066f49f1cbc7bd27e41ee43adae951066ce (patch) | |
tree | 71337d81efd3db525f510219ed5068df6cd3da14 /src/paint.rs | |
parent | 533c991e451dfd636f6ceb3661df4dfeacaae4f9 (diff) |
Make decoration style non-optional
Diffstat (limited to 'src/paint.rs')
-rw-r--r-- | src/paint.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/paint.rs b/src/paint.rs index aa8aec4e..f200701d 100644 --- a/src/paint.rs +++ b/src/paint.rs @@ -400,7 +400,7 @@ mod superimpose_style_sections { use syntect::highlighting::FontStyle as SyntectFontStyle; use syntect::highlighting::Style as SyntectStyle; - use crate::style::Style; + use crate::style::{DecorationStyle, Style}; lazy_static! { static ref SYNTAX_STYLE: SyntectStyle = SyntectStyle { @@ -419,7 +419,7 @@ mod superimpose_style_sections { }, is_raw: false, is_syntax_highlighted: true, - decoration_style: None, + decoration_style: DecorationStyle::NoDecoration, }; } lazy_static! { @@ -432,7 +432,7 @@ mod superimpose_style_sections { }, is_raw: false, is_syntax_highlighted: false, - decoration_style: None, + decoration_style: DecorationStyle::NoDecoration, }; } lazy_static! { @@ -445,7 +445,7 @@ mod superimpose_style_sections { }, is_raw: false, is_syntax_highlighted: true, - decoration_style: None, + decoration_style: DecorationStyle::NoDecoration, }; } |