Update for latest rust

Tracks rust nightly.

7 tests fail -- still finding source
This commit is contained in:
cyderize
2015-01-10 18:37:10 +11:00
parent 241ebc1270
commit 122e94c8a6
42 changed files with 291 additions and 189 deletions

View File

@@ -19,7 +19,7 @@ pub enum HttpVersion {
Http20
}
impl fmt::Show for HttpVersion {
impl fmt::String for HttpVersion {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
match *self {
Http09 => "HTTP/0.9",
@@ -29,3 +29,10 @@ impl fmt::Show for HttpVersion {
}.fmt(fmt)
}
}
impl fmt::Show for HttpVersion {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
self.to_string().fmt(fmt)
}
}