diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-26 21:26:14 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-26 21:28:50 -0400 |
commit | 1b0487db2f180bb50cf8d32c1ae9ba7f44b4298f (patch) | |
tree | 50cbd4bd806b33da055f78955715180280a1637f /src/delta.rs | |
parent | a4d3d302e34dbb2916bad99a01ad21b5675f30a8 (diff) |
Use DecorationStyle instead of style::DecorationStyle
Diffstat (limited to 'src/delta.rs')
-rw-r--r-- | src/delta.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/delta.rs b/src/delta.rs index 6c82a224..3b83af89 100644 --- a/src/delta.rs +++ b/src/delta.rs @@ -10,7 +10,7 @@ use crate::config::Config; use crate::draw; use crate::paint::Painter; use crate::parse; -use crate::style::{self, DecorationStyle}; +use crate::style::DecorationStyle; #[derive(Clone, Debug, PartialEq)] pub enum State { @@ -266,15 +266,15 @@ fn handle_hunk_header_line( ) -> std::io::Result<()> { let decoration_ansi_term_style; let draw_fn = match config.hunk_header_style.decoration_style { - Some(style::DecorationStyle::Box(style)) => { + Some(DecorationStyle::Box(style)) => { decoration_ansi_term_style = style; draw::write_boxed } - Some(style::DecorationStyle::Underline(style)) => { + Some(DecorationStyle::Underline(style)) => { decoration_ansi_term_style = style; draw::write_underlined } - Some(style::DecorationStyle::Omit) => return Ok(()), + Some(DecorationStyle::Omit) => return Ok(()), None => unreachable("Unreachable code path reached in handle_hunk_header_line."), }; let (raw_code_fragment, line_number) = parse::parse_hunk_metadata(&line); |