Update for latest rust
Tracks rust nightly. 7 tests fail -- still finding source
This commit is contained in:
		| @@ -88,7 +88,7 @@ impl FromStr for Method { | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl fmt::Show for Method { | ||||
| impl fmt::String for Method { | ||||
|     fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | ||||
|         match *self { | ||||
|             Options => "OPTIONS", | ||||
| @@ -105,6 +105,12 @@ impl fmt::Show for Method { | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl fmt::Show for Method { | ||||
|     fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | ||||
|         self.to_string().fmt(fmt) | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[cfg(test)] | ||||
| mod tests { | ||||
|     use std::collections::HashMap; | ||||
| @@ -141,7 +147,7 @@ mod tests { | ||||
|  | ||||
|     #[test] | ||||
|     fn test_hashable() { | ||||
|         let mut counter: HashMap<Method,uint> = HashMap::new(); | ||||
|         let mut counter: HashMap<Method,usize> = HashMap::new(); | ||||
|         counter.insert(Get, 1); | ||||
|         assert_eq!(Some(&1), counter.get(&Get)); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user