Merge pull request #325 from renato-zannon/macro-fix

fix(headers): use $crate when referring to hyper modules on macros
This commit is contained in:
Sean McArthur
2015-02-19 13:35:02 -08:00

View File

@@ -108,7 +108,7 @@ macro_rules! impl_list_header(
impl ::std::fmt::Display for $from {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
use header::HeaderFormat;
use $crate::header::HeaderFormat;
self.fmt_header(f)
}
}
@@ -138,7 +138,7 @@ macro_rules! impl_header(
impl ::std::fmt::Display for $from {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
use header::HeaderFormat;
use $crate::header::HeaderFormat;
self.fmt_header(f)
}
}