Allow hyper::method::Method to be put in HashMap
This is needed for porting iron/router to hyper.
This commit is contained in:
@@ -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
|
/// It may make sense to grow this to include all variants currently
|
||||||
/// registered with IANA, if they are at all common to use.
|
/// registered with IANA, if they are at all common to use.
|
||||||
#[deriving(Clone, PartialEq)]
|
#[deriving(Clone, PartialEq, Eq, Hash)]
|
||||||
pub enum Method {
|
pub enum Method {
|
||||||
/// OPTIONS
|
/// OPTIONS
|
||||||
Options,
|
Options,
|
||||||
|
|||||||
Reference in New Issue
Block a user