about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
Diffstat (limited to 'library/std')
-rw-r--r--library/std/src/io/util.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/io/util.rs b/library/std/src/io/util.rs
index fd52de7430a..a8812f197d8 100644
--- a/library/std/src/io/util.rs
+++ b/library/std/src/io/util.rs
@@ -14,6 +14,7 @@ use crate::io::{
 /// the documentation of [`empty()`] for more details.
 #[stable(feature = "rust1", since = "1.0.0")]
 #[non_exhaustive]
+#[derive(Copy, Clone, Default)]
 pub struct Empty;
 
 /// Constructs a new handle to an empty reader.
@@ -172,6 +173,7 @@ impl fmt::Debug for Repeat {
 /// see the documentation of [`sink()`] for more details.
 #[stable(feature = "rust1", since = "1.0.0")]
 #[non_exhaustive]
+#[derive(Copy, Clone, Default)]
 pub struct Sink;
 
 /// Creates an instance of a writer which will successfully consume all data.