@@ -104,7 +104,7 @@ impl FileExplorer {
104104 }
105105 } ,
106106 Err ( err) => {
107- let message = format ! ( "Failed to resolve path: {}" , err ) ;
107+ let message = format ! ( "Failed to resolve path: {err}" ) ;
108108 Ok ( Response :: new ( Full :: new ( Bytes :: from ( message) ) ) )
109109 }
110110 } ,
@@ -138,7 +138,7 @@ impl FileExplorer {
138138 if let Err ( err) = self . process_multipart ( body, boundary. unwrap ( ) ) . await {
139139 return Ok ( Response :: builder ( )
140140 . status ( StatusCode :: INTERNAL_SERVER_ERROR )
141- . body ( Full :: from ( format ! ( "INTERNAL SERVER ERROR: {}" , err ) ) )
141+ . body ( Full :: from ( format ! ( "INTERNAL SERVER ERROR: {err}" ) ) )
142142 . unwrap ( ) ) ;
143143 }
144144
@@ -165,8 +165,7 @@ impl FileExplorer {
165165 let mut file = tokio:: fs:: File :: create ( file_name) . await . unwrap ( ) ;
166166
167167 println ! (
168- "\n \n Name: {:?}, FileName: {:?}, Content-Type: {:?}\n \n " ,
169- name, file_name, content_type
168+ "\n \n Name: {name:?}, FileName: {file_name:?}, Content-Type: {content_type:?}\n \n "
170169 ) ;
171170
172171 // Process the field data chunks e.g. store them in a file.
@@ -177,7 +176,7 @@ impl FileExplorer {
177176 file. write_all ( & field_chunk) . await . unwrap ( ) ;
178177 }
179178
180- println ! ( "Field Bytes Length: {:?}" , field_bytes_len ) ;
179+ println ! ( "Field Bytes Length: {field_bytes_len :?}" ) ;
181180 }
182181
183182 Ok ( ( ) )
0 commit comments