@@ -4,7 +4,7 @@ use header::{Header, HeaderFormat};
44use header:: parsing:: { from_one_comma_delimited, fmt_comma_delimited} ;
55
66/// The Cache-Control header.
7- #[ derive( PartialEq , Clone , Show ) ]
7+ #[ derive( PartialEq , Clone , Debug ) ]
88pub struct CacheControl ( pub Vec < CacheDirective > ) ;
99
1010deref ! ( CacheControl => Vec <CacheDirective >) ;
@@ -34,7 +34,7 @@ impl HeaderFormat for CacheControl {
3434}
3535
3636/// CacheControl contains a list of these directives.
37- #[ derive( PartialEq , Clone , Show ) ]
37+ #[ derive( PartialEq , Clone , Debug ) ]
3838pub enum CacheDirective {
3939 /// "no-cache"
4040 NoCache ,
@@ -69,10 +69,10 @@ pub enum CacheDirective {
6969 Extension ( String , Option < String > )
7070}
7171
72- impl fmt:: String for CacheDirective {
72+ impl fmt:: Display for CacheDirective {
7373 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
7474 use self :: CacheDirective :: * ;
75- fmt:: String :: fmt ( match * self {
75+ fmt:: Display :: fmt ( match * self {
7676 NoCache => "no-cache" ,
7777 NoStore => "no-store" ,
7878 NoTransform => "no-transform" ,
0 commit comments