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:
@@ -7,7 +7,7 @@ use std::fmt;
|
||||
use self::HttpVersion::{Http09, Http10, Http11, Http20};
|
||||
|
||||
/// Represents a version of the HTTP spec.
|
||||
#[derive(PartialEq, PartialOrd, Copy)]
|
||||
#[derive(PartialEq, PartialOrd, Copy, Show)]
|
||||
pub enum HttpVersion {
|
||||
/// `HTTP/0.9`
|
||||
Http09,
|
||||
@@ -30,9 +30,3 @@ impl fmt::String for HttpVersion {
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Show for HttpVersion {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||
self.to_string().fmt(fmt)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user