Skip to content

Commit

Permalink
Merge #95
Browse files Browse the repository at this point in the history
95: fix CI r=crepererum a=crepererum



Co-authored-by: Marco Neumann <[email protected]>
  • Loading branch information
bors[bot] and crepererum authored Oct 4, 2023
2 parents 772b9a8 + b4128e1 commit a1c19ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/commands/list_folders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ pub async fn list_folders(webdriver: &WebDriver) -> Result<Vec<(WebElement, Stri
let mut folders = Vec::with_capacity(rows.len());
let mut seen = HashSet::new();
for row in rows {
let Some(anchor )= row
let Some(anchor) = row
.find_at_most_one(By::Tag("a"))
.await
.context("find folder anchor")? else {
continue
};
.context("find folder anchor")?
else {
continue;
};

let title = anchor
.attr("title")
Expand Down
6 changes: 5 additions & 1 deletion src/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ async fn has_new_email_button(webdriver: &WebDriver) -> Result<bool> {
async fn confirm_dialog(webdriver: &WebDriver) -> Result<()> {
debug!("confirm potential dialogs");

let Some(dialog) = webdriver.find_at_most_one(By::ClassName("dialog")).await.context("find dialog box")? else {
let Some(dialog) = webdriver
.find_at_most_one(By::ClassName("dialog"))
.await
.context("find dialog box")?
else {
debug!("no dialog found");
return Ok(());
};
Expand Down

0 comments on commit a1c19ed

Please sign in to comment.