From 48fec2e6fdede01ed32f28c9083bdc42ef300615 Mon Sep 17 00:00:00 2001 From: Thomas Otto Date: Tue, 4 Jan 2022 23:19:08 +0100 Subject: Make Config cloneable for DeltaTest, store as Cow there Only cloneable when testing, the types git2::Config and git2::Repository in GitConfig contain C pointers and can't really be cloned. --- src/style.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/style.rs') 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)>, -- cgit v1.2.3