GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: clippy-lint red on main — expect_used at src/tags.rs:1484,1499 (clippy 1.99) · Issue #2401 · developing-today/code

id: clippy-lint red on main — expect_used at src/tags.rs:1484,1499 (clippy 1.99) #2401

New issue
Copy link
New issue
Copy link
Closed
Closed
id: clippy-lint red on main — expect_used at src/tags.rs:1484,1499 (clippy 1.99)#2401
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitive

Description

@dezren39
dezren39
opened on Oct 29, 2026
Issue body actions

Problem

The basic: nix flake check (clippy-lint) PR check fails on pkgs/id with two clippy::expect_used errors in code this repo has not changed:

error: used `expect()` on an `Option` value
   --> src/tags.rs:1484:22
    |
1484 |     let ch = input[i..].chars().next().expect("i is a char boundary");
     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     = note: requested on the command line with `-D clippy::expect-used`

error: used `expect()` on an `Option` value
   --> src/tags.rs:1499:22
    |
1499 |     let ch = input[i..].chars().next().expect("i is a char boundary");

Evidence it is pre-existing, not PR-local

  • Observed on PR id(world): wire manifest apply — module install + schedules over the wire (#807) #1820 (queue/2661-807-apply-wiring), run 40894646360 job 123626426997 — the failure was first misread as nix-cache throttling (HTTP 418 on a different, earlier attempt); the rerun reached clippy and produced these two real errors.
  • pkgs/id/src/tags.rs is not in PR id(world): wire manifest apply — module install + schedules over the wire (#807) #1820's file list (13 files changed, none in src/tags.rs).
  • The same two expect() calls are present verbatim in origin/main:pkgs/id/src/tags.rs at the same lines, so the check should be red for any PR that touches pkgs/id.

Impact

Every PR touching pkgs/id is unmergeable: clippy-lint is a required check. #1820 is parked on this, and other app/id work will queue behind it.

Expected fix

Either replace the two expect() calls with a non-panicking form, e.g.

let Some(ch) = input[i..].chars().next() else { break };

(the enclosing loops already break when i >= input.len()), or, if the panic is genuinely intended as an invariant, #[allow(clippy::expect_used)] with a comment — but prefer the let-else, since i is always advanced by len_utf8.

Verify with the clippy-lint check (nix build .#checks.<system>.id-clippy-lint or cargo clippy -p id --all-targets -- -D clippy::expect-used), not just cargo check: the 366 warnings in the same log are non-fatal and must not be "fixed" here.

Related

  • id(world): wire manifest apply — module install + schedules over the wire (#807) #1820 (blocked on this)
  • id: F12.1 apply wiring — module install + schedules reconciliation #807 (F12.1 apply wiring, the parent)

Acceptance criteria

  • basic: nix flake check (clippy-lint) passes on main with no clippy::expect_used errors at pkgs/id/src/tags.rs:1484,1499 — fixed in place or via the keystone PR id: rustfmt meta_client.rs + drop expect() in tags parser — unbreak main fmt/clippy (#2151) #2335 fmt/clippy change set, not both.
  • No behaviour change to the char-boundary parsing those lines implement; existing pkgs/id tests pass in CI.

Activity

  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/highImportant and time-sensitive
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

    @developing-today
    developing-todayBot
    on Oct 29, 2026 – with developing.today
    Contributor
    More actions

    CODE-1224

  3. dezren39
    added
    queue/queuedHas a queued queue task
    status/needs-triageNot yet triaged; needs a first look
    on Oct 29, 2026
  4. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  5. dezren39
    added
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 30, 2026
  6. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    Intake review (fleet monitor, 2026-10-29 run):

    • Related: first observed on PR id(world): wire manifest apply — module install + schedules over the wire (#807) #1820 (run 40894646360); the same two expect() calls are verbatim on main. Looks SOLVED-IN-FLIGHT: lane reports describe keystone PR id: rustfmt meta_client.rs + drop expect() in tags parser — unbreak main fmt/clippy (#2151) #2335 as carrying the fmt/clippy family fix — but PR id: rustfmt meta_client.rs + drop expect() in tags parser — unbreak main fmt/clippy (#2151) #2335 is OPEN (CLEAN) and blocked by the merge-queue stall ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403, and main (5a34fa7) still contains both lines, so this issue stays open; do not close until clippy-lint is green on main.
    • Notes/risks: two owners fixing the same two lines (a direct fix vs id: rustfmt meta_client.rs + drop expect() in tags parser — unbreak main fmt/clippy (#2151) #2335) would conflict — the acceptance criteria name exactly one owner.
    • Suggested approach: verify whether id: rustfmt meta_client.rs + drop expect() in tags parser — unbreak main fmt/clippy (#2151) #2335's diff touches pkgs/id/src/tags.rs; if yes, shepherd id: rustfmt meta_client.rs + drop expect() in tags parser — unbreak main fmt/clippy (#2151) #2335 and close this on its merge; if no, a two-line fix (expect → explicit panic-free handling consistent with file style) is effort/s at most.
  7. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 2, 2026
  8. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    Triage findings (queue task 3611, repo-worker-code lane bf419306, 2026-11-03):

    Already resolved — recommending close. Verified against fresh origin/main (d368b9fb):

    • Both offending lines (src/tags.rs:1484,1499, .expect("i is a char boundary") on chars().next()) are gone from main. The file now lives at pkgs/id/src/tags.rs and both sites use panic-free let Some(ch) = input[i..].chars().next() else { break; } with an invariant comment.
    • git grep -n '.expect(' origin/main -- pkgs/id/src/tags.rs returns zero matches — no .expect( call remains in the file, so -D clippy::expect-used cannot fire on it.
    • The fix arrived via PR id: rustfmt meta_client.rs + drop expect() in tags parser — unbreak main fmt/clippy (#2151) #2335 ("id: rustfmt meta_client.rs + drop expect() in tags parser", touched pkgs/id/src/tags.rs +9/-3), merged 2026-10-30 (merge commit 9c976b8).

    Caveat: could not confirm a green clippy-lint run on current main because the id workflow queue is backlogged (latest main runs all queued), and the old basic: nix flake check (clippy-lint) job name no longer exists under current workflow names. But the lint in question is deterministic on file content — with no .expect( left in the file, this exact failure cannot recur. If clippy flags anything else in pkgs/id, that would be a new issue, not this one.

    No follow-up fix packet needed. Closing with evidence per the triage acceptance criteria.

  9. dezren39
    closed this as completedon Nov 3, 2026
  10. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 3, 2026
  11. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: repo-worker-code (OpenChamber scheduled lane)
    • Task / lane: 3611 / bf419306-c4ef-470f-a553-beabf93239de
    • Found via: atomic queue claim
    • Task: Triage id: clippy-lint red on main — expect_used at src/tags.rs:1484,1499 (clippy 1.99) #2401 clippy expect_used failure; revalidate main and route.
    • Links: issue id: clippy-lint red on main — expect_used at src/tags.rs:1484,1499 (clippy 1.99) #2401, merged fix PR id: rustfmt meta_client.rs + drop expect() in tags parser — unbreak main fmt/clippy (#2151) #2335
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitive

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.