From 54304c6130b8a97a8c66dedab72541e0405d366f Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 24 Aug 2021 16:18:12 +0200 Subject: fix: typo for options hashmap --- src/browser/web_browser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/browser/web_browser.rs b/src/browser/web_browser.rs index 10dacb7..daeab5f 100644 --- a/src/browser/web_browser.rs +++ b/src/browser/web_browser.rs @@ -113,16 +113,16 @@ impl Browser { )) .await?; - let mut faculties_ids = HashMap::::new(); + let mut options = HashMap::::new(); for i in list_elements { - faculties_ids.insert( + options.insert( i.get_attribute("data-select2-id").await.unwrap().unwrap(), i.text().await.unwrap(), ); } - return Ok(Some(faculties_ids)); + return Ok(Some(options)); } Ok(None) -- cgit v1.2.3-18-g5258