Updated to using #[deriving(Copy)].
This commit is contained in:
parent
f0bb1f71ba
commit
0ec3f1f282
3 changed files with 3 additions and 7 deletions
|
@ -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,
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue