feat(allocator): implement Display for Box#10731
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Small uncontroversial change, so merging without review. |
Merge activity
|
WalkthroughThe change introduces an implementation of the 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (16)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
crates/oxc_allocator/src/boxed.rs(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Benchmark linter (0)
🔇 Additional comments (1)
crates/oxc_allocator/src/boxed.rs (1)
7-7: ImportDisplaytrait alongsideFormattercorrectly
The addition ofDisplay(andFormatter) to theuse std::fmtimport brings exactly what you need for the newDisplayimplementation without extra baggage. This aligns with existing imports and keeps the module tidy.
ae993dc to
d5f66fb
Compare
CodSpeed Instrumentation Performance ReportMerging #10731 will not alter performanceComparing Summary
|

Implement
DisplayforBox, same as std lib does, by delegating toDisplayimpl for the content of theBox.