File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ impl ngx_str_t {
162
162
pub unsafe fn from_string ( pool : * mut ngx_pool_t , data : String ) -> Self {
163
163
ngx_str_t {
164
164
data : str_to_uchar ( pool, data. as_str ( ) ) ,
165
- len : data. len ( ) as _ ,
165
+ len : data. len ( ) ,
166
166
}
167
167
}
168
168
@@ -183,7 +183,7 @@ impl ngx_str_t {
183
183
pub unsafe fn from_str ( pool : * mut ngx_pool_t , data : & str ) -> Self {
184
184
ngx_str_t {
185
185
data : str_to_uchar ( pool, data) ,
186
- len : data. len ( ) as _ ,
186
+ len : data. len ( ) ,
187
187
}
188
188
}
189
189
}
@@ -254,9 +254,9 @@ pub unsafe fn add_to_ngx_table(
254
254
}
255
255
table. as_mut ( ) . map ( |table| {
256
256
table. hash = 1 ;
257
- table. key . len = key. len ( ) as _ ;
257
+ table. key . len = key. len ( ) ;
258
258
table. key . data = str_to_uchar ( pool, key) ;
259
- table. value . len = value. len ( ) as _ ;
259
+ table. value . len = value. len ( ) ;
260
260
table. value . data = str_to_uchar ( pool, value) ;
261
261
table. lowcase_key = str_to_uchar ( pool, String :: from ( key) . to_ascii_lowercase ( ) . as_str ( ) ) ;
262
262
} )
You can’t perform that action at this time.
0 commit comments