diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-12-14 23:24:36 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-19 10:51:00 -0500 |
| commit | a77e8a63d5d4c0fa04a878995824e727870135f9 (patch) | |
| tree | c422bcbfb5fe130035b38f2c7eb56e632845ca9a /src/libstd/comm | |
| parent | 2df30a47e2e0ef563d9ed80cb3cc258cbea0f53a (diff) | |
| download | rust-a77e8a63d5d4c0fa04a878995824e727870135f9.tar.gz rust-a77e8a63d5d4c0fa04a878995824e727870135f9.zip | |
libstd: use `#[deriving(Copy)]`
Diffstat (limited to 'src/libstd/comm')
| -rw-r--r-- | src/libstd/comm/mod.rs | 4 |
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)] |
