Skip to content

Commit b556c39

Browse files
committed
Make Method a valid hash key
1 parent 925eeab commit b556c39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/conduit.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ extern crate semver;
22

33
use std::collections::HashMap;
44
use std::io::net::ip::IpAddr;
5+
use std::hash::Hash;
56
use std::any::Any;
67

78
#[deriving(PartialEq, Show, Clone)]
@@ -16,7 +17,7 @@ pub enum Host<'a> {
1617
HostIp(IpAddr)
1718
}
1819

19-
#[deriving(PartialEq, Show, Clone)]
20+
#[deriving(PartialEq, Hash, Show, Clone)]
2021
pub enum Method<'a> {
2122
Get,
2223
Post,

0 commit comments

Comments
 (0)