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 {
162162 pub unsafe fn from_string ( pool : * mut ngx_pool_t , data : String ) -> Self {
163163 ngx_str_t {
164164 data : str_to_uchar ( pool, data. as_str ( ) ) ,
165- len : data. len ( ) as _ ,
165+ len : data. len ( ) ,
166166 }
167167 }
168168
@@ -183,7 +183,7 @@ impl ngx_str_t {
183183 pub unsafe fn from_str ( pool : * mut ngx_pool_t , data : & str ) -> Self {
184184 ngx_str_t {
185185 data : str_to_uchar ( pool, data) ,
186- len : data. len ( ) as _ ,
186+ len : data. len ( ) ,
187187 }
188188 }
189189}
@@ -254,9 +254,9 @@ pub unsafe fn add_to_ngx_table(
254254 }
255255 table. as_mut ( ) . map ( |table| {
256256 table. hash = 1 ;
257- table. key . len = key. len ( ) as _ ;
257+ table. key . len = key. len ( ) ;
258258 table. key . data = str_to_uchar ( pool, key) ;
259- table. value . len = value. len ( ) as _ ;
259+ table. value . len = value. len ( ) ;
260260 table. value . data = str_to_uchar ( pool, value) ;
261261 table. lowcase_key = str_to_uchar ( pool, String :: from ( key) . to_ascii_lowercase ( ) . as_str ( ) ) ;
262262 } )
You can’t perform that action at this time.
0 commit comments