File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ enum FileContent {
90
90
}
91
91
92
92
impl FileContent {
93
- fn load ( & self ) -> Fallible < Cow < [ u8 ] > > {
93
+ fn load ( & self ) -> Fallible < Cow < ' _ , [ u8 ] > > {
94
94
Ok ( match * self {
95
95
FileContent :: Static ( content) => Cow :: Borrowed ( content) ,
96
96
FileContent :: Dynamic ( ref path) => {
@@ -108,7 +108,7 @@ pub struct Asset {
108
108
}
109
109
110
110
impl Asset {
111
- pub fn content ( & self ) -> Fallible < Cow < [ u8 ] > > {
111
+ pub fn content ( & self ) -> Fallible < Cow < ' _ , [ u8 ] > > {
112
112
self . content . load ( )
113
113
}
114
114
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ enum SanitizationContext {
133
133
}
134
134
135
135
impl SanitizationContext {
136
- fn sanitize ( self , input : & str ) -> Cow < str > {
136
+ fn sanitize ( self , input : & str ) -> Cow < ' _ , str > {
137
137
match self {
138
138
SanitizationContext :: Url => utf8_percent_encode ( input, & REPORT_ENCODE_SET ) . into ( ) ,
139
139
You can’t perform that action at this time.
0 commit comments