Skip to content

Commit 0f59ca4

Browse files
committed
Fix clippy
1 parent ef2e59a commit 0f59ca4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/citeproc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ fn extract_from_html(html: &str) -> String {
320320
match child {
321321
Node::Element(Element { name, classes, .. })
322322
if name == "div"
323-
&& classes.get(0).map(|c| c == "csl-entry").unwrap_or(false) =>
323+
&& classes.first().map(|c| c == "csl-entry").unwrap_or(false) =>
324324
{
325325
if !item.is_empty() {
326326
res.push_str(&item);
@@ -335,7 +335,6 @@ fn extract_from_html(html: &str) -> String {
335335

336336
if !item.is_empty() {
337337
res.push_str(&item);
338-
item = String::new();
339338
}
340339

341340
res

0 commit comments

Comments
 (0)