diff options
Diffstat (limited to 'vendor/anstyle/src/effect.rs')
-rw-r--r-- | vendor/anstyle/src/effect.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |