From 91112516fc26bdd0b7201030dbd9451107a5a19e Mon Sep 17 00:00:00 2001 From: Eric Kidd Date: Mon, 24 Nov 2014 07:43:05 -0500 Subject: [PATCH] Allow hyper::method::Method to be put in HashMap This is needed for porting iron/router to hyper. --- src/method.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/method.rs b/src/method.rs index af096f4a..8bd1b96e 100644 --- a/src/method.rs +++ b/src/method.rs @@ -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,