fix(headers): use $crate when referring to hyper modules on macros

This adds a $crate variable missed by de1be6726

Closes #323
This commit is contained in:
Renato Zannon
2015-02-19 19:18:15 -02:00
parent bdb4d0e56e
commit e246c3ace8

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)
}
}