File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
1
use rocket:: fs:: NamedFile ;
2
- use rocket:: http:: uncased:: Uncased ;
3
- use rocket:: http:: Header ;
2
+ use rocket:: http:: { hyper, Header } ;
4
3
use rocket:: response:: Responder ;
5
4
6
5
#[ derive( Responder ) ]
@@ -13,12 +12,10 @@ impl CachedNamedFile {
13
12
pub fn max_age ( file : NamedFile , max_age : u32 ) -> Self {
14
13
Self {
15
14
file,
16
- header : Header {
17
- name : Uncased {
18
- string : "CacheControl" . into ( ) ,
19
- } ,
20
- value : format ! ( "max-age={max_age}" ) . into ( ) ,
21
- } ,
15
+ header : Header :: new (
16
+ hyper:: header:: CACHE_CONTROL . as_str ( ) ,
17
+ format ! ( "max-age={max_age}" ) ,
18
+ ) ,
22
19
}
23
20
}
24
21
}
Original file line number Diff line number Diff line change 41
41
<div class =" highlight" ></div >
42
42
</header >
43
43
{{ #fluent " coc-moderation-description" }}
44
- {{ #fluentparam " coc-rust-moderation-team-anchor" }}
45
- <a href =" {{ baseurl }} /governance/teams/moderation" >{{ fluent " coc-moderation-description-team-anchor-text" }} </a >
46
- {{ /fluentparam }}
44
+ {{ #fluentparam " coc-rust-moderation-team-anchor" }} <a href =" {{ baseurl }} /governance/teams/moderation" >{{ fluent " coc-moderation-description-team-anchor-text" }} </a >{{ /fluentparam }}
47
45
{{ /fluent }}
48
46
</div >
49
47
</section >
You can’t perform that action at this time.
0 commit comments