You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(id): PR #3110 left cmd_serve's #[allow(unused_variables)] on serve_groups_log_path — non-web builds warn on web/port again #4662
PR #3110 (merged) threaded --groups-log into id serve's group-warning watcher (#2778). To add its path-resolution helper it inserted the new serve_groups_log_path function between cmd_serve's doc comment / #[allow(unused_variables)] attribute and cmd_serve itself. In Rust an outer attribute binds to the next item, so the allow — whose own comment says it exists because "web/port only used with web feature" — now decorates serve_groups_log_path (which uses its only parameter and needs no allow), and cmd_serve has lost it.
Evidence
PR: id(serve): thread --groups-log into the group-warning watcher (#2778) #3110 — merged, head 9f5f2832789bfaff8feac9957f04115324de01bf. Its serve.rs hunk inserts the doc comment + fn serve_groups_log_path directly after the context line #[allow(unused_variables)] // web/port only used with web feature and before pub async fn cmd_serve.
Current main (17610f5553): pkgs/id/src/commands/serve.rs:832 — #[allow(unused_variables)] // web/port only used with web feature immediately precedes the serve_groups_log_path doc comment and function at :833-839; cmd_serve follows at :841 with no attribute.
cmd_serve destructures web and port out of ServeOptions (serve.rs, just below :841); those bindings are the ones the allow was written for — without the web feature they are unused.
Verified still present on current main by reading serve.rs:825-849 directly. Dedupe: searched open + closed issues 2026-11-02 for unused_variables, serve_groups_log_path, and allow attribute serve — no match.
Why it matters
Feature-reduced builds of the id crate (--no-default-features / web disabled) get the unused_variables warnings on web/port that the attribute existed to suppress — warning noise that can mask real warnings and fails any -D warnings invocation — and the stray allow on the helper misleads the next reader about which function needs it.
Acceptance criteria
#[allow(unused_variables)] (with its web/port comment) sits on cmd_serve again, and serve_groups_log_path carries no allow attribute.
Building the id crate with the web feature disabled produces no unused_variables warnings for web/port in cmd_serve (checked in CI).
Found via: atomic queue claim in repo-health-code-pilot.
Next: verify the attribute placement on fresh origin/main, then move #[allow(unused_variables)] back onto cmd_serve in a laptop worktree (branch queue/6617-4662-cmd-serve-allow) and open the PR. Scope: serve.rs attribute placement only.
Activity
dezren39 commentedon Nov 2, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 2, 2026
Agent note — picked up (repo queue worker, lane D)
repo-worker-code), lanecode-drepo-health-code-pilot.#[allow(unused_variables)]back ontocmd_servein a laptop worktree (branchqueue/6617-4662-cmd-serve-allow) and open the PR. Scope: serve.rs attribute placement only.1 remaining item
dezren39 commentedon Nov 3, 2026
🤖 Agent note · picked up
Merge pull request #4688 from developing-today/queue/6617-4662-cmd-se…
dezren39 commentedon Nov 3, 2026
🤖 Agent note · done