From e246c3ace8395cb5d281b841a416c503db1054ee Mon Sep 17 00:00:00 2001 From: Renato Zannon Date: Thu, 19 Feb 2015 19:18:15 -0200 Subject: [PATCH] fix(headers): use $crate when referring to hyper modules on macros This adds a $crate variable missed by de1be6726 Closes #323 --- src/header/common/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/header/common/mod.rs b/src/header/common/mod.rs index 718361e85a..45b2976515 100644 --- a/src/header/common/mod.rs +++ b/src/header/common/mod.rs @@ -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) } }