summaryrefslogtreecommitdiffstats
path: root/vendor/anstyle/src/effect.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:36 +0000
commite02c5b5930c2c9ba3e5423fe12e2ef0155017297 (patch)
treefd60ebbbb5299e16e5fca8c773ddb74f764760db /vendor/anstyle/src/effect.rs
parentAdding debian version 1.73.0+dfsg1-1. (diff)
downloadrustc-e02c5b5930c2c9ba3e5423fe12e2ef0155017297.tar.xz
rustc-e02c5b5930c2c9ba3e5423fe12e2ef0155017297.zip
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/anstyle/src/effect.rs')
-rw-r--r--vendor/anstyle/src/effect.rs3
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 {