diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 18:31:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 18:31:36 +0000 |
commit | e02c5b5930c2c9ba3e5423fe12e2ef0155017297 (patch) | |
tree | fd60ebbbb5299e16e5fca8c773ddb74f764760db /vendor/anstyle/src/reset.rs | |
parent | Adding debian version 1.73.0+dfsg1-1. (diff) | |
download | rustc-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/reset.rs')
-rw-r--r-- | vendor/anstyle/src/reset.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/anstyle/src/reset.rs b/vendor/anstyle/src/reset.rs index 5f5f2b461..c8c214093 100644 --- a/vendor/anstyle/src/reset.rs +++ b/vendor/anstyle/src/reset.rs @@ -5,11 +5,12 @@ pub struct Reset; impl Reset { /// Render the ANSI code #[inline] - pub fn render(self) -> impl core::fmt::Display { + pub fn render(self) -> impl core::fmt::Display + Copy + Clone { ResetDisplay } } +#[derive(Copy, Clone, Default, Debug)] struct ResetDisplay; impl core::fmt::Display for ResetDisplay { |