diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-11-11 10:50:43 -0500 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2021-11-15 21:01:32 -0500 |
commit | 9a929e1ff3cc07c166e8719d1dc5dabc650ec131 (patch) | |
tree | 2baa92083a6b8fa7ea5db8df59dbad0b7e188774 | |
parent | 008e1e934a0b6974ba7b626921e7238cda039ad9 (diff) |
Clean up
-rw-r--r-- | src/delta.rs | 2 | ||||
-rw-r--r-- | src/parse_style.rs | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/delta.rs b/src/delta.rs index 71b96bff..8d2b067f 100644 --- a/src/delta.rs +++ b/src/delta.rs @@ -13,7 +13,7 @@ use crate::style::DecorationStyle; #[derive(Clone, Debug, PartialEq)] pub enum State { - CommitMeta, // In commit metadata section + CommitMeta, // In commit metadata section FileMeta, // In diff metadata section, between (possible) commit metadata and first hunk HunkHeader(String, String), // In hunk metadata line (line, raw_line) HunkZero, // In hunk; unchanged line diff --git a/src/parse_style.rs b/src/parse_style.rs index 49299fa9..820cc036 100644 --- a/src/parse_style.rs +++ b/src/parse_style.rs @@ -327,8 +327,6 @@ fn _extract_special_decoration_attributes( mod tests { use super::*; - use ansi_term; - #[test] fn test_parse_ansi_term_style() { assert_eq!( |