Skip to content

ci: add clippy::map_unwrap_or to denied lints#64

Merged
poyrazK merged 1 commit intomainfrom
ci/deny-map-unwrap-or-lint
Apr 19, 2026
Merged

ci: add clippy::map_unwrap_or to denied lints#64
poyrazK merged 1 commit intomainfrom
ci/deny-map-unwrap-or-lint

Conversation

@poyrazK
Copy link
Copy Markdown
Owner

@poyrazK poyrazK commented Apr 19, 2026

Summary

  • Add clippy::map_unwrap_or to denied lints in CI
  • Auto-fix 5 instances of map().unwrap_or(x)map_or(x, |...|)

Files changed

  • .github/workflows/ci.yml — add -D clippy::map_unwrap_or
  • rust/crates/cloudsearch-index/src/doc_values_reader.rs — 1 fix
  • rust/crates/cloudsearch-index/src/lib.rs — 2 fixes
  • rust/crates/cloudsearch-storage/src/lib.rs — 2 fixes

Test plan

  • cargo clippy --workspace --all-targets -- -D warnings -D clippy::map_unwrap_or passes
  • Tests pass

@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 33 minutes and 45 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 33 minutes and 45 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: f3baca2d-7008-43a3-a81b-8cd8cb8ac217

📥 Commits

Reviewing files that changed from the base of the PR and between f76b3b6 and 41c9cff.

📒 Files selected for processing (4)
  • .github/workflows/ci.yml
  • rust/crates/cloudsearch-index/src/doc_values_reader.rs
  • rust/crates/cloudsearch-index/src/lib.rs
  • rust/crates/cloudsearch-storage/src/lib.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/deny-map-unwrap-or-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.

Fix 5 instances of `map().unwrap_or(x)` which should be
`map_or(x, |...|)` to avoid eager evaluation of the default.

Auto-fixed by cargo clippy --fix.
@poyrazK poyrazK force-pushed the ci/deny-map-unwrap-or-lint branch from 4aab938 to 41c9cff Compare April 19, 2026 16:51
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 c82bdc3 into main Apr 19, 2026
4 checks passed
@poyrazK poyrazK deleted the ci/deny-map-unwrap-or-lint branch April 19, 2026 16:55
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