diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-10-25 11:20:13 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-10-25 11:20:13 +0200 |
commit | d91b029e768c8bfe410df1add69ac24811b52958 (patch) | |
tree | abb98a91bc5e5e0072a7ce3e866b640f41d24351 /src/browser | |
parent | ba38ac07dc702e7d734ec648fdb8d552c03c1458 (diff) |
fix(style): run cargo clippymain
Diffstat (limited to 'src/browser')
-rw-r--r-- | src/browser/web_browser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<Option<HashMap<String, String>>> { 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?; } } |