summaryrefslogtreecommitdiff
path: root/src/browser
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-08-24 16:18:12 +0200
committerSanto Cariotti <santo@dcariotti.me>2021-08-24 16:18:12 +0200
commit54304c6130b8a97a8c66dedab72541e0405d366f (patch)
tree2bb50db87e18890ab6e704de422426cab271d24e /src/browser
parentc14904124c0d3bc13b8f0739eb174ee5aa7c8b50 (diff)
fix: typo for options hashmap
Diffstat (limited to 'src/browser')
-rw-r--r--src/browser/web_browser.rs6
1 files 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::<String, String>::new();
+ let mut options = HashMap::<String, String>::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)