Skip to content

Commit e246c3a

Browse files
committed
fix(headers): use $crate when referring to hyper modules on macros
This adds a $crate variable missed by de1be67 Closes #323
1 parent bdb4d0e commit e246c3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/header/common/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ macro_rules! impl_list_header(
108108

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

139139
impl ::std::fmt::Display for $from {
140140
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
141-
use header::HeaderFormat;
141+
use $crate::header::HeaderFormat;
142142
self.fmt_header(f)
143143
}
144144
}

0 commit comments

Comments
 (0)