From d91b029e768c8bfe410df1add69ac24811b52958 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 25 Oct 2021 11:20:13 +0200 Subject: fix(style): run cargo clippy --- src/browser/web_browser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/browser') diff --git a/src/browser/web_browser.rs b/src/browser/web_browser.rs index 552d72c..34424b6 100644 --- a/src/browser/web_browser.rs +++ b/src/browser/web_browser.rs @@ -131,7 +131,7 @@ impl Browser { url: &str, ) -> WebDriverResult>> { if let Some(_d) = &self.driver { - if url != "" { + if !url.is_empty() { _d.get(url).await?; } @@ -139,7 +139,7 @@ impl Browser { match self.check_login().await { Ok(true) => { // Login has been made, so reload the url - if url != "" { + if !url.is_empty() { _d.get(url).await?; } } -- cgit v1.2.3-18-g5258