Skip to content

Commit

Permalink
chore: Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
theduke committed Oct 28, 2023
1 parent 5527e7c commit 36570fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/async_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,14 +494,14 @@ mod test {
async fn test_summary_async() -> Result<(), Error> {
let client = build_test_client();
let summary = client.summary().await?;
assert!(summary.most_downloaded.len() > 0);
assert!(summary.just_updated.len() > 0);
assert!(summary.new_crates.len() > 0);
assert!(summary.most_recently_downloaded.len() > 0);
assert!(!summary.most_downloaded.is_empty());
assert!(!summary.just_updated.is_empty());
assert!(!summary.new_crates.is_empty());
assert!(!summary.most_recently_downloaded.is_empty());
assert!(summary.num_crates > 0);
assert!(summary.num_downloads > 0);
assert!(summary.popular_categories.len() > 0);
assert!(summary.popular_keywords.len() > 0);
assert!(!summary.popular_categories.is_empty());
assert!(!summary.popular_keywords.is_empty());
Ok(())
}

Expand Down
12 changes: 6 additions & 6 deletions src/sync_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,14 +343,14 @@ mod test {
fn test_summary() -> Result<(), Error> {
let client = build_test_client();
let summary = client.summary()?;
assert!(summary.most_downloaded.len() > 0);
assert!(summary.just_updated.len() > 0);
assert!(summary.new_crates.len() > 0);
assert!(summary.most_recently_downloaded.len() > 0);
assert!(!summary.most_downloaded.is_empty());
assert!(!summary.just_updated.is_empty());
assert!(!summary.new_crates.is_empty());
assert!(!summary.most_recently_downloaded.is_empty());
assert!(summary.num_crates > 0);
assert!(summary.num_downloads > 0);
assert!(summary.popular_categories.len() > 0);
assert!(summary.popular_keywords.len() > 0);
assert!(!summary.popular_categories.is_empty());
assert!(!summary.popular_keywords.is_empty());
Ok(())
}

Expand Down

0 comments on commit 36570fd

Please sign in to comment.