Skip to content

Commit 3860564

Browse files
committed
clippy fix
1 parent b9a5a05 commit 3860564

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/commands/stacker.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4785,10 +4785,8 @@ fn extract_html_forms(html: &str, page_path: &str) -> Vec<Value> {
47854785
for attr_cap in attr_re.captures_iter(attrs_str) {
47864786
match attr_cap[1].to_lowercase().as_str() {
47874787
"id" => id = attr_cap[2].to_string(),
4788-
"name" => {
4789-
if id.is_empty() {
4790-
id = attr_cap[2].to_string();
4791-
}
4788+
"name" if id.is_empty() => {
4789+
id = attr_cap[2].to_string();
47924790
}
47934791
"action" => action = attr_cap[2].to_string(),
47944792
"method" => method = attr_cap[2].to_uppercase(),

0 commit comments

Comments
 (0)