Skip to content

Commit

Permalink
[rust] Minor changes related to string manipulation (no logical changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Dec 18, 2023
1 parent 98ea560 commit 29b6dc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ fn main() {
);
flush_and_exit(OK, log, Some(err));
} else if selenium_manager.is_offline() {
log.warn(err.to_string());
log.warn(&err);
flush_and_exit(OK, log, Some(err));
} else {
log.error(err.to_string());
log.error(&err);
flush_and_exit(DATAERR, log, Some(err));
}
});
Expand All @@ -269,7 +269,7 @@ fn log_driver_and_browser_path(
receiver: &Receiver<String>,
) {
if let Ok(err) = receiver.try_recv() {
log.warn(err.to_string());
log.warn(err);
}
if driver_path.exists() {
log.info(format!("{}{}", DRIVER_PATH, driver_path.display()));
Expand Down

0 comments on commit 29b6dc7

Please sign in to comment.