From ba38ac07dc702e7d734ec648fdb8d552c03c1458 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 29 Sep 2021 22:42:49 +0200 Subject: feat: login is now a private function It's called by the selection method. In this way it could make a re-login when a session expires. --- src/browser/mod.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/browser/mod.rs') diff --git a/src/browser/mod.rs b/src/browser/mod.rs index 9b36c94..5c078b4 100644 --- a/src/browser/mod.rs +++ b/src/browser/mod.rs @@ -14,16 +14,6 @@ pub async fn init(config: &Config) { } } -/// Login using the credentials from the `Config`. 'Cause its kind of nature -/// this is an `unsafe` block, so the function is defined like that -pub async unsafe fn login(credentials: &Config) -> WebDriverResult<()> { - if let Some(driver) = &WEB_BROWSER { - driver._login(credentials).await?; - } - - Ok(()) -} - /// Get the faculties available for booking a room pub async unsafe fn get_faculties() -> WebDriverResult>> { if let Some(driver) = &WEB_BROWSER { -- cgit v1.2.3-18-g5258