Skip to content

ci: enable clippy::default_trait_access lint#70

Merged
poyrazK merged 1 commit intomainfrom
feat/default-trait-access-lint
Apr 19, 2026
Merged

ci: enable clippy::default_trait_access lint#70
poyrazK merged 1 commit intomainfrom
feat/default-trait-access-lint

Conversation

@poyrazK
Copy link
Copy Markdown
Owner

@poyrazK poyrazK commented Apr 19, 2026

Summary

  • Enable clippy::default_trait_access lint in CI
  • Fix 94 warnings by replacing Default::default() with IndexSettings::default() or MappingMode::default()
  • Add MappingMode import where missing

Test plan

  • CI passes with new lint enabled
  • All warnings fixed

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 19, 2026

Warning

Rate limit exceeded

@poyrazK has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 51 minutes and 57 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 51 minutes and 57 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6e4734a4-40fc-46de-b187-55b5aa52b9ac

📥 Commits

Reviewing files that changed from the base of the PR and between 0b6e8ec and 965a592.

📒 Files selected for processing (8)
  • .github/workflows/ci.yml
  • rust/crates/cloudsearch-api/src/lib.rs
  • rust/crates/cloudsearch-api/tests/bulk.rs
  • rust/crates/cloudsearch-api/tests/metrics.rs
  • rust/crates/cloudsearch-api/tests/query_parsing.rs
  • rust/crates/cloudsearch-api/tests/slow_query.rs
  • rust/crates/cloudsearch-index/src/lib.rs
  • rust/crates/cloudsearch-index/tests/coverage.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/default-trait-access-lint

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Enable clippy::default_trait_access lint:
- Replace 94 occurrences of `Default::default()` with `IndexSettings::default()` or `MappingMode::default()`
- Add missing imports in test files
@poyrazK poyrazK force-pushed the feat/default-trait-access-lint branch from c387ad3 to 965a592 Compare April 19, 2026 21:45
Copy link
Copy Markdown
Owner Author

@poyrazK poyrazK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's okay to merge

@poyrazK poyrazK merged commit 5571d84 into main Apr 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant