fix(header): fix fmt_header outputs of several headers

Closes #246
This commit is contained in:
Sean McArthur
2015-01-13 10:42:01 -08:00
parent cfebdabc1a
commit aa26665367
11 changed files with 45 additions and 62 deletions

View File

@@ -1,5 +1,5 @@
use header::{Header, HeaderFormat};
use std::fmt::{self, Show};
use std::fmt;
use header::shared::util::from_one_raw_str;
/// The `Location` header.
@@ -30,8 +30,7 @@ impl Header for Location {
impl HeaderFormat for Location {
fn fmt_header(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
let Location(ref value) = *self;
value.fmt(fmt)
fmt.write_str(&*self.0)
}
}