From e02c5b5930c2c9ba3e5423fe12e2ef0155017297 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 20:31:36 +0200 Subject: Merging upstream version 1.74.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/anstyle/src/effect.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vendor/anstyle/src/effect.rs') diff --git a/vendor/anstyle/src/effect.rs b/vendor/anstyle/src/effect.rs index d31dafe82..56b3e615c 100644 --- a/vendor/anstyle/src/effect.rs +++ b/vendor/anstyle/src/effect.rs @@ -156,7 +156,7 @@ impl Effects { /// Render the ANSI code #[inline] - pub fn render(self) -> impl core::fmt::Display { + pub fn render(self) -> impl core::fmt::Display + Copy + Clone { EffectsDisplay(self) } @@ -307,6 +307,7 @@ pub(crate) const METADATA: [Metadata; 12] = [ }, ]; +#[derive(Copy, Clone, Default, Debug)] struct EffectsDisplay(Effects); impl core::fmt::Display for EffectsDisplay { -- cgit v1.2.3