From da294ec03b908b6865a636d79b49335ef4bb2db7 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 29 Jul 2021 16:59:55 +0200 Subject: fix: panic error literal --- src/browser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/browser.rs') 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"); } }; -- cgit v1.2.3-18-g5258