diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-04-11 10:12:33 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-04-11 10:12:33 -0400 |
commit | 8e97fdab8782e4056b5bda0391bdf00c74c8a429 (patch) | |
tree | 0e6c08ba58e3a406311099476c5e175e10a57d17 /src/paint.rs | |
parent | 39054280f16b070e8994b3f98ee4c056d5e9b1e5 (diff) |
Refactor: do not expose command line options struct in config struct
Diffstat (limited to 'src/paint.rs')
-rw-r--r-- | src/paint.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/paint.rs b/src/paint.rs index b83c3862..4d7ec822 100644 --- a/src/paint.rs +++ b/src/paint.rs @@ -158,7 +158,7 @@ impl<'a> Painter<'a> { &line, highlighter, &config, - config.opt.highlight_removed, + config.highlight_removed, )); } let mut plus_line_sections = Vec::new(); @@ -202,7 +202,7 @@ impl<'a> Painter<'a> { config.minus_emph_style_modifier, config.plus_style_modifier, config.plus_emph_style_modifier, - config.opt.max_line_distance, + config.max_line_distance, ) } } |