Skip to content

Commit

Permalink
[rust] Minor smell-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Apr 21, 2023
1 parent 9c2f475 commit 3893a5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rust/src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn Error>> {
let file = File::open(compressed_file)?;
Expand Down Expand Up @@ -93,7 +93,7 @@ pub fn uncompress(
Ok(())
}

pub fn untargz(file: File, target: &PathBuf, log: &Logger) -> Result<(), Box<dyn Error>> {
pub fn untargz(file: File, target: &Path, log: &Logger) -> Result<(), Box<dyn Error>> {
log.trace(format!("Untargz file to {}", target.display()));
let tar = GzDecoder::new(&file);
let mut archive = Archive::new(tar);
Expand Down
2 changes: 1 addition & 1 deletion rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3893a5e

Please sign in to comment.