From 1740a2e669948275da593c97e3ecbeae31549767 Mon Sep 17 00:00:00 2001 From: Aaron Weiss Date: Fri, 24 Apr 2015 01:53:37 -0400 Subject: [PATCH] Removed FromPrimitive derivation. --- src/client/data/response.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/data/response.rs b/src/client/data/response.rs index f9a5980..ba45e2d 100644 --- a/src/client/data/response.rs +++ b/src/client/data/response.rs @@ -7,7 +7,7 @@ use client::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. -#[derive(Clone, Copy, Debug, PartialEq, FromPrimitive)] +#[derive(Clone, Copy, Debug, PartialEq)] #[repr(u16)] #[stable] pub enum Response { @@ -449,7 +449,7 @@ impl FromStr for Response { type Err = &'static str; fn from_str(s: &str) -> Result { if let Ok(rc) = s.parse::() { - // This wall of text was brought to you by the slated removal of FromPrimitive. + // This wall of text was brought to you by the removal of FromPrimitive. if (rc > 0 && rc < 5) || (rc > 200 && rc < 213) || rc == 219 || rc == 221 || rc == 234 || rc == 235 || rc == 242 || rc == 243 || (rc > 250 && rc < 260) || (rc > 260 && rc < 264) || (rc > 300 && rc < 307) ||