Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulf Lilleengen committed Oct 18, 2023
1 parent 6833742 commit c78e741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/src/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl BombasticDelete {
{
r if r.status() == StatusCode::OK => {
let response = r.json::<bombastic_model::prelude::SearchResult>().await?;
if response.result.len() == 0 {
if response.result.is_empty() {
break;
}
log::info!("[Offset {}]: Got {} documents", offset, response.result.len());
Expand Down Expand Up @@ -200,7 +200,7 @@ impl VexinationDelete {
{
r if r.status() == StatusCode::OK => {
let response = r.json::<vexination_model::prelude::SearchResult>().await?;
if response.result.len() == 0 {
if response.result.is_empty() {
break;
}
log::info!("[Offset {}]: Got {} documents", offset, response.result.len());
Expand Down

0 comments on commit c78e741

Please sign in to comment.