diff --git a/rust/src/files.rs b/rust/src/files.rs index 97fbfea7682d2..f66dd12dc40fd 100644 --- a/rust/src/files.rs +++ b/rust/src/files.rs @@ -61,7 +61,7 @@ pub fn create_path_if_not_exists(path: &Path) { pub fn uncompress( compressed_file: &str, - target: &PathBuf, + target: &Path, log: &Logger, ) -> Result<(), Box> { let file = File::open(compressed_file)?; @@ -93,7 +93,7 @@ pub fn uncompress( Ok(()) } -pub fn untargz(file: File, target: &PathBuf, log: &Logger) -> Result<(), Box> { +pub fn untargz(file: File, target: &Path, log: &Logger) -> Result<(), Box> { log.trace(format!("Untargz file to {}", target.display())); let tar = GzDecoder::new(&file); let mut archive = Archive::new(tar); diff --git a/rust/src/main.rs b/rust/src/main.rs index d904be5231bad..9c2e34565d6c7 100644 --- a/rust/src/main.rs +++ b/rust/src/main.rs @@ -144,7 +144,7 @@ fn main() { .map(|path| { let log = selenium_manager.get_logger(); log.info(path.display()); - flush_and_exit(OK, &log); + flush_and_exit(OK, log); }) .unwrap_or_else(|err| { let log = selenium_manager.get_logger();