summaryrefslogtreecommitdiff
path: root/src/browser.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-07-29 16:59:55 +0200
committerSanto Cariotti <santo@dcariotti.me>2021-07-29 16:59:55 +0200
commitda294ec03b908b6865a636d79b49335ef4bb2db7 (patch)
tree11c8182f7d5bfab82849c6de2bf95dc904464ee4 /src/browser.rs
parent7f3f9f0bf18ba9c48b7b62d4825a2932b6b0c68d (diff)
fix: panic error literal
Diffstat (limited to 'src/browser.rs')
-rw-r--r--src/browser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/browser.rs b/src/browser.rs
index 4c06aeb..9846841 100644
--- a/src/browser.rs
+++ b/src/browser.rs
@@ -6,8 +6,8 @@ use thirtyfour::{FirefoxCapabilities, WebDriver, WebDriverCommands};
pub async fn init() -> WebDriver {
let driver = match WebDriver::new("http://localhost:4444", FirefoxCapabilities::new()).await {
Ok(driver) => driver,
- Err(e) => {
- panic!(e);
+ Err(_) => {
+ panic!("Firefox can't be opened");
}
};