summaryrefslogtreecommitdiffstats
path: root/src/style.rs
diff options
context:
space:
mode:
authorThomas Otto <th1000s@posteo.net>2022-01-04 23:19:08 +0100
committerDan Davison <dandavison7@gmail.com>2022-01-04 19:51:23 -0500
commit48fec2e6fdede01ed32f28c9083bdc42ef300615 (patch)
treeb857723ddf43f3f622712a6ba64f7ab0904e6c3f /src/style.rs
parent1d6f18a6630825cefa4c6cd714e8103dd8a95cde (diff)
Make Config cloneable for DeltaTest, store as Cow<Config> there
Only cloneable when testing, the types git2::Config and git2::Repository in GitConfig contain C pointers and can't really be cloned.
Diffstat (limited to 'src/style.rs')
-rw-r--r--src/style.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/style.rs b/src/style.rs
index fe0da888..925d7e71 100644
--- a/src/style.rs
+++ b/src/style.rs
@@ -215,6 +215,7 @@ pub fn ansi_term_style_equality(a: ansi_term::Style, b: ansi_term::Style) -> boo
// TODO: The equality methods were implemented first, and the equality_key
// methods later. The former should be re-implemented in terms of the latter.
// But why did the former not address equality of ansi_term::Color::RGB values?
+#[derive(Clone)]
pub struct AnsiTermStyleEqualityKey {
attrs_key: (bool, bool, bool, bool, bool, bool, bool, bool),
foreground_key: Option<(u8, u8, u8, u8)>,