Repository navigation
fix(id): restore cmd_serve's #[allow(unused_variables)] misplaced by PR #3110 (#4662) - #4688
Merged
Merged
Conversation
#3110 (#4662) PR #3110 inserted serve_groups_log_path between cmd_serve's doc comment / allow attribute and cmd_serve itself, so the allow (and the doc comment) bound to the helper, which needs neither, and cmd_serve lost the allow written for its web/port bindings. Move the helper above cmd_serve's doc block so the attribute sits on cmd_serve again. No code changes: the helper body and cmd_serve are byte-identical, only their order in the file changed. Verified on the laptop: cargo check -p id (default features = no web feature) reports zero unused-variable warnings; the #2778 / #3110 regression tests serve_groups_log_path_honours_override_and_default and the serve_group_warnings_* set pass.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 56 minutes. View limit details
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. CodeRabbit Verify
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4662.
PR #3110 inserted
serve_groups_log_pathbetweencmd_serve's doc comment /#[allow(unused_variables)]attribute andcmd_serveitself, so the allow — written forcmd_serve'sweb/portbindings, unused without thewebfeature — bound to the helper instead, and non-web builds warned onweb/portagain.This PR moves the helper (doc comment + function, byte-identical) above
cmd_serve's doc block, so the doc comment and the attribute bind tocmd_serveagain andserve_groups_log_pathcarries no allow. No code changes; only the order of the two items inpkgs/id/src/commands/serve.rschanged (8 insertions / 8 deletions, a pure move).Verification (laptop, this branch):
cargo check -p idinpkgs/id(default features — thewebfeature is not a default, so this is the non-web build): zerounused variablewarnings. (One pre-existing, unrelated unused-import warning at serve.rs:79 remains, untouched.)cargo test -p id --lib serve_groups_log_path— 1 passed;cargo test -p id --lib serve_group_warnings— 6 passed (the id(serve): group-warning watcher ignores --groups-log — serve always reads the default groups.jsonl (PR #1805) #2778 / id(serve): thread --groups-log into the group-warning watcher (#2778) #3110 regression set, untouched).Queue task 6617 (repo-health-code-pilot, lane code-k (resumed; body prepared by lane code-d)).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.