@@ -4,7 +4,7 @@ use header::{Header, HeaderFormat};
4
4
use header:: parsing:: { from_one_comma_delimited, fmt_comma_delimited} ;
5
5
6
6
/// The Cache-Control header.
7
- #[ derive( PartialEq , Clone , Show ) ]
7
+ #[ derive( PartialEq , Clone , Debug ) ]
8
8
pub struct CacheControl ( pub Vec < CacheDirective > ) ;
9
9
10
10
deref ! ( CacheControl => Vec <CacheDirective >) ;
@@ -34,7 +34,7 @@ impl HeaderFormat for CacheControl {
34
34
}
35
35
36
36
/// CacheControl contains a list of these directives.
37
- #[ derive( PartialEq , Clone , Show ) ]
37
+ #[ derive( PartialEq , Clone , Debug ) ]
38
38
pub enum CacheDirective {
39
39
/// "no-cache"
40
40
NoCache ,
@@ -69,10 +69,10 @@ pub enum CacheDirective {
69
69
Extension ( String , Option < String > )
70
70
}
71
71
72
- impl fmt:: String for CacheDirective {
72
+ impl fmt:: Display for CacheDirective {
73
73
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
74
74
use self :: CacheDirective :: * ;
75
- fmt:: String :: fmt ( match * self {
75
+ fmt:: Display :: fmt ( match * self {
76
76
NoCache => "no-cache" ,
77
77
NoStore => "no-store" ,
78
78
NoTransform => "no-transform" ,
0 commit comments