@@ -287,7 +287,7 @@ fn import_url(stack: Stack, matches: &clap::ArgMatches) -> Result<()> {
287
287
288
288
#[ cfg( feature = "import-compressed" ) ]
289
289
fn import_tgz_series ( stack : Stack , matches : & clap:: ArgMatches , source_path : & Path ) -> Result < ( ) > {
290
- let source_file = std:: fs:: File :: open ( & source_path) ?;
290
+ let source_file = std:: fs:: File :: open ( source_path) ?;
291
291
let mut archive = tar:: Archive :: new ( flate2:: read:: GzDecoder :: new ( source_file) ) ;
292
292
let temp_dir = tempfile:: tempdir ( ) ?;
293
293
archive. unpack ( temp_dir. path ( ) ) ?;
@@ -297,7 +297,7 @@ fn import_tgz_series(stack: Stack, matches: &clap::ArgMatches, source_path: &Pat
297
297
298
298
#[ cfg( feature = "import-compressed" ) ]
299
299
fn import_tbz2_series ( stack : Stack , matches : & clap:: ArgMatches , source_path : & Path ) -> Result < ( ) > {
300
- let source_file = std:: fs:: File :: open ( & source_path) ?;
300
+ let source_file = std:: fs:: File :: open ( source_path) ?;
301
301
let mut archive = tar:: Archive :: new ( bzip2:: read:: BzDecoder :: new ( source_file) ) ;
302
302
let temp_dir = tempfile:: tempdir ( ) ?;
303
303
archive. unpack ( temp_dir. path ( ) ) ?;
@@ -307,7 +307,7 @@ fn import_tbz2_series(stack: Stack, matches: &clap::ArgMatches, source_path: &Pa
307
307
308
308
#[ cfg( feature = "import-compressed" ) ]
309
309
fn import_tar_series ( stack : Stack , matches : & clap:: ArgMatches , source_path : & Path ) -> Result < ( ) > {
310
- let source_file = std:: fs:: File :: open ( & source_path) ?;
310
+ let source_file = std:: fs:: File :: open ( source_path) ?;
311
311
let mut archive = tar:: Archive :: new ( source_file) ;
312
312
let temp_dir = tempfile:: tempdir ( ) ?;
313
313
archive. unpack ( temp_dir. path ( ) ) ?;
0 commit comments