Skip to content

Commit 3893a5e

Browse files
committed
[rust] Minor smell-fixes
1 parent 9c2f475 commit 3893a5e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

rust/src/files.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub fn create_path_if_not_exists(path: &Path) {
6161

6262
pub fn uncompress(
6363
compressed_file: &str,
64-
target: &PathBuf,
64+
target: &Path,
6565
log: &Logger,
6666
) -> Result<(), Box<dyn Error>> {
6767
let file = File::open(compressed_file)?;
@@ -93,7 +93,7 @@ pub fn uncompress(
9393
Ok(())
9494
}
9595

96-
pub fn untargz(file: File, target: &PathBuf, log: &Logger) -> Result<(), Box<dyn Error>> {
96+
pub fn untargz(file: File, target: &Path, log: &Logger) -> Result<(), Box<dyn Error>> {
9797
log.trace(format!("Untargz file to {}", target.display()));
9898
let tar = GzDecoder::new(&file);
9999
let mut archive = Archive::new(tar);

rust/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ fn main() {
144144
.map(|path| {
145145
let log = selenium_manager.get_logger();
146146
log.info(path.display());
147-
flush_and_exit(OK, &log);
147+
flush_and_exit(OK, log);
148148
})
149149
.unwrap_or_else(|err| {
150150
let log = selenium_manager.get_logger();

0 commit comments

Comments
 (0)