fix(rustup): update to newest fmt trait names and slice syntax
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user