diff --git a/src/cmd/joinp.rs b/src/cmd/joinp.rs index 634366039..3b2124d27 100644 --- a/src/cmd/joinp.rs +++ b/src/cmd/joinp.rs @@ -508,7 +508,7 @@ impl Args { // if so, we need to decompress it first if input1_path.extension().and_then(std::ffi::OsStr::to_str) == Some("sz") { let decompressed_path = - util::decompress_snappy_file(&input1_path.to_path_buf(), &tmpdir)?; + util::decompress_snappy_file(&input1_path.to_path_buf(), tmpdir)?; self.arg_input1 = decompressed_path; } @@ -533,7 +533,7 @@ impl Args { // check if the right input file is snappy compressed if input2_path.extension().and_then(std::ffi::OsStr::to_str) == Some("sz") { let decompressed_path = - util::decompress_snappy_file(&input2_path.to_path_buf(), &tmpdir)?; + util::decompress_snappy_file(&input2_path.to_path_buf(), tmpdir)?; self.arg_input2 = decompressed_path; }