about summary refs log tree commit diff
path: root/src/libstd/comm
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2014-12-14 23:24:36 -0500
committerJorge Aparicio <japaricious@gmail.com>2014-12-19 10:51:00 -0500
commita77e8a63d5d4c0fa04a878995824e727870135f9 (patch)
treec422bcbfb5fe130035b38f2c7eb56e632845ca9a /src/libstd/comm
parent2df30a47e2e0ef563d9ed80cb3cc258cbea0f53a (diff)
downloadrust-a77e8a63d5d4c0fa04a878995824e727870135f9.tar.gz
rust-a77e8a63d5d4c0fa04a878995824e727870135f9.zip
libstd: use `#[deriving(Copy)]`
Diffstat (limited to 'src/libstd/comm')
-rw-r--r--src/libstd/comm/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstd/comm/mod.rs b/src/libstd/comm/mod.rs
index 8f945fec4d5..9043cb8c7d6 100644
--- a/src/libstd/comm/mod.rs
+++ b/src/libstd/comm/mod.rs
@@ -391,7 +391,7 @@ pub struct SyncSender<T> {
 
 /// This enumeration is the list of the possible reasons that try_recv could not
 /// return data when called.
-#[deriving(PartialEq, Clone, Show)]
+#[deriving(PartialEq, Clone, Copy, Show)]
 #[experimental = "this is likely to be removed in changing try_recv()"]
 pub enum TryRecvError {
     /// This channel is currently empty, but the sender(s) have not yet
@@ -402,8 +402,6 @@ pub enum TryRecvError {
     Disconnected,
 }
 
-impl Copy for TryRecvError {}
-
 /// This enumeration is the list of the possible error outcomes for the
 /// `SyncSender::try_send` method.
 #[deriving(PartialEq, Clone, Show)]