Continue updating for latest rust

Fixed tests, however cannot link bench tests for some reason
This commit is contained in:
cyderize
2015-01-10 19:15:46 +11:00
parent 122e94c8a6
commit cc7fa15b04
6 changed files with 13 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
use header::{Header, HeaderFormat};
use Port;
use std::fmt::{self, Show};
use std::fmt;
use header::shared::util::from_one_raw_str;
/// The `Host` header.
@@ -66,7 +66,7 @@ impl Header for Host {
impl HeaderFormat for Host {
fn fmt_header(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
match self.port {
None | Some(80) | Some(443) => self.hostname.fmt(fmt),
None | Some(80) | Some(443) => write!(fmt, "{}", self.hostname),
Some(port) => write!(fmt, "{}:{}", self.hostname, port)
}
}