File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -481,12 +481,12 @@ impl<H: hash::Writer> hash::Hash<H> for CaseInsensitive {
481
481
482
482
/// A wrapper around any Header with a Show impl that calls fmt_header.
483
483
///
484
- /// This can be used like so: `format!("{}", ShowHeader( header))` to
484
+ /// This can be used like so: `format!("{}", HeaderFormatter(& header))` to
485
485
/// get the representation of a Header which will be written to an
486
486
/// outgoing TcpStream.
487
- pub struct HeaderFormatter < H : HeaderFormat > ( H ) ;
487
+ pub struct HeaderFormatter < ' a , H : HeaderFormat > ( pub & ' a H ) ;
488
488
489
- impl < H : HeaderFormat > Show for HeaderFormatter < H > {
489
+ impl < ' a , H : HeaderFormat > Show for HeaderFormatter < ' a , H > {
490
490
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
491
491
self . 0 . fmt_header ( f)
492
492
}
You can’t perform that action at this time.
0 commit comments