Skip to content

Commit

Permalink
Fix remaining clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
mre authored and dblock committed Sep 3, 2021
1 parent 74711b3 commit 1d46a3d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lychee-lib/src/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,7 @@ fn elem_attr_is_link(attr_name: &str, elem_name: &str) -> bool {
// over at: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
matches!(
(attr_name, elem_name),
("href", _)
| ("src", _)
| ("srcset", _)
| ("cite", _)
| ("data", "object")
| ("onhashchange", "body")
("href" | "src" | "srcset" | "cite", _) | ("data", "object") | ("onhashchange", "body")
)
}

Expand Down

0 comments on commit 1d46a3d

Please sign in to comment.