fix(rustup): update to newest fmt trait names and slice syntax

This commit is contained in:
Sean McArthur
2015-01-23 14:17:19 -08:00
parent bb4f913ede
commit 9e3c94d764
38 changed files with 90 additions and 114 deletions

View File

@@ -3,7 +3,7 @@ extern crate hyper;
extern crate test;
use std::fmt::{self, Show};
use std::fmt;
use std::io::net::ip::Ipv4Addr;
use hyper::server::{Request, Response, Server};
use hyper::header::Headers;
@@ -44,7 +44,7 @@ impl hyper::header::Header for Foo {
impl hyper::header::HeaderFormat for Foo {
fn fmt_header(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
"Bar".fmt(fmt)
fmt.write_str("Bar")
}
}

View File

@@ -3,7 +3,7 @@ extern crate hyper;
extern crate test;
use std::fmt::{self, Show};
use std::fmt;
use std::io::{IoResult, MemReader};
use std::io::net::ip::SocketAddr;
@@ -60,7 +60,7 @@ impl hyper::header::Header for Foo {
impl hyper::header::HeaderFormat for Foo {
fn fmt_header(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
"Bar".fmt(fmt)
fmt.write_str("Bar")
}
}