We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef2e59a commit 0f59ca4Copy full SHA for 0f59ca4
tests/citeproc.rs
@@ -320,7 +320,7 @@ fn extract_from_html(html: &str) -> String {
320
match child {
321
Node::Element(Element { name, classes, .. })
322
if name == "div"
323
- && classes.get(0).map(|c| c == "csl-entry").unwrap_or(false) =>
+ && classes.first().map(|c| c == "csl-entry").unwrap_or(false) =>
324
{
325
if !item.is_empty() {
326
res.push_str(&item);
@@ -335,7 +335,6 @@ fn extract_from_html(html: &str) -> String {
335
336
337
338
- item = String::new();
339
}
340
341
res
0 commit comments