-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat: upgrade to rust edition 2024 #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Use of `unsafe` blocks (in tests only) is ok due to use of cargo-nextest, which creates a separate env for each test (run in parallel).
WalkthroughThe PR updates workspace Rust edition configuration to "2024" by centralizing edition management in the workspace root Cargo.toml file. It simultaneously refactors source and test files with consistent import reordering, conditional logic simplification via pattern guards and if-let chains, and environment variable operations wrapped in unsafe blocks within test functions. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~30 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (20)
🧰 Additional context used🧠 Learnings (7)📓 Common learnings📚 Learning: 2025-11-04T06:50:10.870ZApplied to files:
📚 Learning: 2024-11-23T06:20:11.698ZApplied to files:
📚 Learning: 2024-10-02T07:55:08.948ZApplied to files:
📚 Learning: 2024-11-23T14:10:31.760ZApplied to files:
📚 Learning: 2025-01-21T09:56:32.771ZApplied to files:
📚 Learning: 2024-09-29T18:03:56.584ZApplied to files:
🧬 Code graph analysis (11)cpp-linter/tests/reviews.rs (1)
cpp-linter/src/cli/structs.rs (1)
cpp-linter/tests/paginated_changed_files.rs (1)
cpp-linter/tests/comments.rs (2)
cpp-linter/src/clang_tools/clang_tidy.rs (1)
cpp-linter/src/common_fs/mod.rs (2)
cpp-linter/src/clang_tools/clang_format.rs (1)
cpp-linter/src/clang_tools/mod.rs (3)
cpp-linter/src/rest_api/github/specific_api.rs (2)
cpp-linter/src/rest_api/github/mod.rs (1)
cpp-linter/src/rest_api/mod.rs (4)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
🔇 Additional comments (37)
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. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #228 +/- ##
==========================================
+ Coverage 96.53% 96.79% +0.26%
==========================================
Files 14 14
Lines 2999 3027 +28
==========================================
+ Hits 2895 2930 +35
+ Misses 104 97 -7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Use of
unsafeblocks (in tests only) isok due to use of cargo-nextest,
which creates a separate env for
each test (run in parallel).
Summary by CodeRabbit
Refactor
Chores
Tests
✏️ Tip: You can customize this high-level summary in your review settings.