Skip to content

Commit 29b6dc7

Browse files
committed
[rust] Minor changes related to string manipulation (no logical changes)
1 parent 98ea560 commit 29b6dc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ fn main() {
253253
);
254254
flush_and_exit(OK, log, Some(err));
255255
} else if selenium_manager.is_offline() {
256-
log.warn(err.to_string());
256+
log.warn(&err);
257257
flush_and_exit(OK, log, Some(err));
258258
} else {
259-
log.error(err.to_string());
259+
log.error(&err);
260260
flush_and_exit(DATAERR, log, Some(err));
261261
}
262262
});
@@ -269,7 +269,7 @@ fn log_driver_and_browser_path(
269269
receiver: &Receiver<String>,
270270
) {
271271
if let Ok(err) = receiver.try_recv() {
272-
log.warn(err.to_string());
272+
log.warn(err);
273273
}
274274
if driver_path.exists() {
275275
log.info(format!("{}{}", DRIVER_PATH, driver_path.display()));

0 commit comments

Comments
 (0)