Skip to content

Commit

Permalink
fix(headers): use $crate when referring to hyper modules on macros
Browse files Browse the repository at this point in the history
This adds a $crate variable missed by de1be67

Closes #323
  • Loading branch information
renato-zannon committed Feb 19, 2015
1 parent bdb4d0e commit e246c3a
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 e246c3a

Please sign in to comment.