Conversation
4c1c59f to
5077b4f
Compare
6dad761 to
c4c55cc
Compare
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. |
5077b4f to
5f8d14b
Compare
There was a problem hiding this comment.
Pull request overview
This PR performs pure refactoring to clean up code in the oxfmt formatter by fixing compiler warnings and removing unnecessary indirection.
Changes:
- Removed unnecessary
Option<ExternalFormatter>wrapper fromStdinRunner, requiring the formatter to be passed directly to the constructor - Fixed unused variable warning for
sort_package_jsonwhen building without thenapifeature by using conditional compilation
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
apps/oxfmt/src/stdin/mod.rs |
Removed Option<> wrapper and builder method, updated new() to accept ExternalFormatter directly |
apps/oxfmt/src/main_napi.rs |
Updated StdinRunner::new() call site to pass external_formatter as constructor argument |
apps/oxfmt/src/core/config.rs |
Added conditional compilation to extract sort_package_json only when napi feature is enabled |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
Pure refactoring; - Fix unused var warnings with `--no-default-features` - Remove useless `Option<>`
5f8d14b to
82c6c1a
Compare

Pure refactoring;
--no-default-featuresOption<>