Skip to content

id: clippy-lint red on main — unwrap() in boards/records.rs tests (and formerly screen_codec tests) #12665

Closed

Description

@dezren39

Found by lane-t2 while verifying #12242 (fleet-run 45063969351, checks.x86_64-linux.clippy-lint at main + the #12242 branch): after the screen_codec test-module allow is applied (that half is fixed in lane-t2's #12242 PR), clippy-lint still fails with 7 clippy::unwrap_used errors in the id CLI crate's lib tests:

  • src/boards/records.rs:575, 622, 789, 834, 836, 850, 867 — unwrap() on Result/Option values in test code without the codebase-standard #[allow(clippy::unwrap_used, clippy::expect_used)] test-module attribute (pkgs/id AGENTS.md).

Pre-existing on main; unrelated to #12242 (boards feature). The fix shape is the same one-liner on that test module, or converting the unwraps; left to a boards owner / a small follow-up lane.

Activity

  1. developing-today commented on Nov 22, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Sweep verification (2026-11-22): already fixed on main by #12675 (merged 2026-11-22T20:47:06Z, merge commit 6f2ae66). Read-back of origin/main shows #[allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)] on note_anchor_tests (pkgs/id/src/boards/records.rs:571) and note_projection_properties (:857), which cover the reported lines 575, 622, 789, 834-867. Local clippy is unavailable in this sweep environment (pre-existing toolchain gap), so the clippy-lint job on the next nightly main run is the confirming signal. Closing as fixed.

  3. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Closed as implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions