Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
baerwang committed Feb 27, 2024
1 parent 07dd0cc commit b2a69ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handler/form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ static FROM: Lazy<HashMap<&str, HtmlFn>> = Lazy::new(|| {

pub fn filter(tab: Arc<Tab>, h: Html) {
if let Some(func) = FROM.get(h.el_type.as_str()) {
_ = match tab.find_element_by_xpath(h.xpath.as_str()) {
match tab.find_element_by_xpath(h.xpath.as_str()) {
Ok(v) => {
_ = v.click();
func(tab.clone(), h);
}
Err(err) => log::warn!("{}", err),
};
}
} else {
log::warn!("not el type: {}", h.el_type);
}
Expand Down

0 comments on commit b2a69ad

Please sign in to comment.