Allow hyper::method::Method to be put in HashMap

This is needed for porting iron/router to hyper.
This commit is contained in:
Eric Kidd
2014-11-24 07:43:05 -05:00
parent eb7217eaaa
commit 91112516fc

View File

@@ -13,7 +13,7 @@ use self::Method::{Options, Get, Post, Put, Delete, Head, Trace, Connect, Patch,
///
/// It may make sense to grow this to include all variants currently
/// registered with IANA, if they are at all common to use.
#[deriving(Clone, PartialEq)]
#[deriving(Clone, PartialEq, Eq, Hash)]
pub enum Method {
/// OPTIONS
Options,