Continue updating for latest rust
Fixed tests, however cannot link bench tests for some reason
This commit is contained in:
		| @@ -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) | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user