@@ -176,7 +176,7 @@ impl AggregatorHandler for AggregatorHTTPClient {
176
176
Ok ( response) => match response. status ( ) {
177
177
StatusCode :: OK => {
178
178
let local_path = archive_file_path ( digest, & self . network ) ?;
179
- fs:: create_dir_all ( & local_path. parent ( ) . unwrap ( ) ) ?;
179
+ fs:: create_dir_all ( local_path. parent ( ) . unwrap ( ) ) ?;
180
180
let mut local_file = fs:: File :: create ( & local_path) ?;
181
181
let bytes_total = response. content_length ( ) . ok_or_else ( || {
182
182
AggregatorHandlerError :: RemoteServerTechnical (
@@ -300,14 +300,14 @@ mod tests {
300
300
. unwrap ( )
301
301
. join ( path:: Path :: new ( source_directory_name) )
302
302
. join ( path:: Path :: new ( data_file_name) ) ;
303
- fs:: create_dir_all ( & source_file_path. parent ( ) . unwrap ( ) ) . unwrap ( ) ;
303
+ fs:: create_dir_all ( source_file_path. parent ( ) . unwrap ( ) ) . unwrap ( ) ;
304
304
let mut source_file = fs:: File :: create ( & source_file_path) . unwrap ( ) ;
305
305
write ! ( source_file, "{}" , data_expected) . unwrap ( ) ;
306
306
let archive_file = fs:: File :: create ( & archive_file_path) . unwrap ( ) ;
307
307
let archive_encoder = GzEncoder :: new ( & archive_file, Compression :: default ( ) ) ;
308
308
let mut archive_builder = tar:: Builder :: new ( archive_encoder) ;
309
309
archive_builder
310
- . append_dir_all ( "." , & source_file_path. parent ( ) . unwrap ( ) )
310
+ . append_dir_all ( "." , source_file_path. parent ( ) . unwrap ( ) )
311
311
. unwrap ( ) ;
312
312
archive_builder. into_inner ( ) . unwrap ( ) . finish ( ) . unwrap ( ) ;
313
313
}
0 commit comments