rustup: sweeping fixes for all the changes in 1.0-alpha
- Some switches to u64 instead of usize - For now, allow(unstable) - use associated types for all the Network stuff
This commit is contained in:
		| @@ -26,6 +26,7 @@ use std::cmp::Ordering::{self, Less, Equal, Greater}; | ||||
| /// # use hyper::status::StatusCode::{Code123, Continue}; | ||||
| /// assert_eq!(Code123.class().default_code(), Continue); | ||||
| /// ``` | ||||
| #[derive(Show)] | ||||
| pub enum StatusCode { | ||||
|     /// 100 Continue | ||||
|     Continue = 100, | ||||
| @@ -1595,12 +1596,6 @@ impl fmt::String for StatusCode { | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl fmt::Show for StatusCode { | ||||
|     fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | ||||
|         self.to_string().fmt(fmt) | ||||
|     } | ||||
| } | ||||
|  | ||||
| // Specified manually because the codegen for derived is slow (at the time of writing on the machine | ||||
| // of writing, 1.2 seconds) and verbose (though the optimiser cuts it down to size). | ||||
| impl PartialEq for StatusCode { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user