Skip to content

Commit

Permalink
Merge pull request #325 from renato-zannon/macro-fix
Browse files Browse the repository at this point in the history
fix(headers): use $crate when referring to hyper modules on macros
  • Loading branch information
seanmonstar committed Feb 19, 2015
2 parents bdb4d0e + e246c3a commit e8833c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/header/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down Expand Up @@ -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)
}
}
Expand Down

0 comments on commit e8833c0

Please sign in to comment.