Updated to using #[deriving(Copy)].

This commit is contained in:
Aaron Weiss 2014-12-14 19:21:14 -05:00
parent f0bb1f71ba
commit 0ec3f1f282
3 changed files with 3 additions and 7 deletions

View file

@ -948,7 +948,7 @@ impl<'a> Command<'a> {
/// A list of all of the subcommands for the capabilities extension.
#[stable]
#[deriving(Show, PartialEq)]
#[deriving(Copy, Show, PartialEq)]
pub enum CapSubCommand {
/// Requests a list of the server's capabilities.
LS,

View file

@ -6,7 +6,7 @@ use data::message::Message;
/// List of all server responses as defined in [RFC 2812](http://tools.ietf.org/html/rfc2812).
/// All commands are documented with their expected form from the RFC.
#[deriving(Show, PartialEq, FromPrimitive)]
#[deriving(Copy, Show, PartialEq, FromPrimitive)]
#[repr(uint)]
#[unstable]
pub enum Response {
@ -306,8 +306,6 @@ impl Response {
}
}
impl Copy for Response {}
impl FromStr for Response {
fn from_str(s: &str) -> Option<Response> {
if let Some(respcode) = from_str(s) {

View file

@ -107,7 +107,7 @@ impl PartialEq for User {
/// The user's access level.
#[stable]
#[deriving(PartialEq, Clone, Show)]
#[deriving(Copy, PartialEq, Clone, Show)]
pub enum AccessLevel {
/// The channel owner (~).
Owner,
@ -123,8 +123,6 @@ pub enum AccessLevel {
Member,
}
impl Copy for AccessLevel {}
impl PartialOrd for AccessLevel {
fn partial_cmp(&self, other: &AccessLevel) -> Option<Ordering> {
if self == other { return Some(Equal) }