Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
DerDrodt committed Oct 16, 2024
1 parent ef2e59a commit 0f59ca4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/citeproc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ fn extract_from_html(html: &str) -> String {
match child {
Node::Element(Element { name, classes, .. })
if name == "div"
&& classes.get(0).map(|c| c == "csl-entry").unwrap_or(false) =>
&& classes.first().map(|c| c == "csl-entry").unwrap_or(false) =>
{
if !item.is_empty() {
res.push_str(&item);
Expand All @@ -335,7 +335,6 @@ fn extract_from_html(html: &str) -> String {

if !item.is_empty() {
res.push_str(&item);
item = String::new();
}

res
Expand Down

0 comments on commit 0f59ca4

Please sign in to comment.