Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Feb 3, 2025
1 parent 5b82742 commit 355ebd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/citeproc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ mod citeproc_bib {
}
}

if css != "" {
if !css.is_empty() {
push_elem(&format!("<span style=\"{css}\">"), "</span>");
}

Expand All @@ -760,8 +760,8 @@ mod citeproc_bib {
render_child(child, output)?;
}

if div_suffix != "" {
output.push_str(&div_suffix);
if !div_suffix.is_empty() {
output.push_str(div_suffix);
}
Ok(())
}
Expand Down

0 comments on commit 355ebd7

Please sign in to comment.