GeezerVison is showing github.com — id: clear the two 1.99 clippy lints in id-client/id-events/id-grants/id-groups/id-pg (#803) by developing-today-fleet[bot] · Pull Request #15400 · developing-today/code
Conversation
Refs #803 (slice — the issue stays open by its own acceptance criteria)
What this does
Continues the #803 clippy sweep for the two Rust 1.99 lints (clippy::assert_is_empty, clippy::chunks_exact_to_as_chunks), following the slice landed in #14452.
Fully cleared — allows dropped from the lint table, 0 sites remain, tests green:
id-client, id-events, id-grants, id-groups, id-pg
Sites converted in this PR (60):
- 45
assert_is_empty sites (id-events 32, id-grants 5, id-groups 5, id-pg 3) → assert_eq!(expr, [] as [Elem; 0]) per clippy's own suggestions; no assertion weakened
- 15
chunks_exact sites → as_chunks across id-store, id-sync, id-web and others
Allows restored in 7 crates (id, id-cli, id-directory, id-store, id-sync, id-web, id-worlds): the first per-package census attempt read 0 sites for these because one id-sync compile error aborted every downstream run before its own targets were checked. With that fixed, the true remaining counts are: id-worlds 88, id 75, id-sync 68, id-store 43, id-cli 41, id-web 11, id-directory 6 — 332 sites, recorded on #803 for the next slices. Keeping the allows there keeps the clippy -D warnings leg green; the site fixes already made in those crates stay in.
Verification (fleet-command runs on developing-today/fleet)
- Run 45739600711: per-package clippy census for all 12 crates + test suites — 10/11 packages RC=0 (id-events failed on one untyped
assert_eq!(…, []), E0282, fixed in this PR)
- Run 45748037485: recount — id-client/id-grants/id-groups/id-pg TWO_LINT=0 ERRORS=0; id-directory (allows restored) TWO_LINT=0
- Run 45751125512: id-events clippy with
--keep-going surfaced 3 final sites hidden behind sibling test targets' pre-existing deny-lint errors; converted
- Run 45757473462 (final, this HEAD): id-events TWO_LINT=0,
cargo test -p id-events RC=0 — 411 passed, 0 failed
Pre-existing breakage noted, not touched
No new dependencies. rust-toolchain.toml untouched.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-26T05:02:49Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch",
"repo": "developing-today/code",
"branch": "main",
"sha": "30247ab2d608be39eb0ebe922589e002a3771a66"
},
"auth_subject": "felix",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…t tables (#803)
Probe commit: enumerates the remaining sites for the two Rust 1.99
lints now that the workspace compiles clean under clippy (0 error-level
diagnostics on main 75db717).
13 clippy::chunks_exact_to_as_chunks sites across id-cli, id-directory,
id-events, id-store, id-sync, id-worlds and the root id package, converted
per clippy's suggestions (zip sites converted by hand to
as_chunks::<N>().0.iter()). The probe found zero remaining
clippy::assert_is_empty sites in the 12 crates whose allows were dropped.
.map(hash_of) does not coerce &[u8; 32] to &[u8] through the fn item;
wrap in a closure so the coercion applies at the call site.
…s/id-groups/id-pg (#803)
42 sites found by per-package clippy runs (the workspace run stops
scheduling after the wayland-sys executor failure, so it had missed
them): 29 in id-events, 5 each in id-grants and id-groups, 3 in id-pg,
converted to assert_eq! against clippy's suggested empty arrays.
Also: id-sync b07 chunks conversion now copies the [u8; 32] chunk
directly (try_into has no TryFrom<&[u8; 32]> impl), and two
chunks_exact sites in id-store/id-web that the poisoned runs hid.
…n the 7 crates with remaining sites (#803)
The full per-package census (fleet run 45739600711) showed the
round-2 zeroes for id/id-cli/id-directory/id-store/id-sync/id-web/
id-worlds were an artifact: the id-sync b07 error aborted those runs
before they checked their own targets. True remaining counts:
id-worlds 88, id 75, id-sync 68, id-store 43, id-cli 41, id-web 11,
id-directory 6 (332 total). Restoring the allows in those 7 crates
keeps the clippy -D warnings leg green; their site fixes from the
earlier commits stay. The 5 cleared crates (id-client, id-events,
id-grants, id-groups, id-pg) keep the drops.
…ny-error target aborts (#803)
A --keep-going clippy run (fleet 45751125512) surfaced 3 sites in
tests/deletion_state_machine.rs and tests/feed_cursor_model.rs that
earlier runs missed whenever a sibling test target's pre-existing
deny-lint errors aborted the run first.
…#803)
The test includes deletion.rs directly via #[path] mod deletion, so
the type is deletion::DeletionEvidence, not id_core::graph::deletion
(the module is not crate-root wired yet).
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
04b6f1eb-55fb-4147-a457-33eb07a2e8f8
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
developing-today-fleet Bot
pushed a commit
that referenced
this pull request
Nov 26, 2026
….8 allows (Refs #803)
Convert the 6 assert!(x.is_empty()) sites in id-directory tests to
assert_eq!(x, [] as [Elem; 0]) in the PR #15400 pattern (friends_of x2,
loaded.skipped x2, deliveries x2) and remove the assert_is_empty /
chunks_exact_to_as_chunks allows from the crate lint table. Census
(negctl branch, allows dropped only): exactly these 6 sites fire for
assert_is_empty and 0 for chunks_exact_to_as_chunks; the BTreeMap/
BTreeSet is_empty asserts do not trigger the lint.
This was referenced Nov 26, 2026
developing-today-fleet Bot
pushed a commit
that referenced
this pull request
Nov 26, 2026
…sus sites + 3 post-census additions on current main)
assert!(x.is_empty()) -> assert_eq!(x, [] as [T; 0]) following the merged
slices (#15400/#15403/#15412/#15491/#15522/#15525/#15529/#15535).
Negative control (run 45831946171, current main, warning mode, JSON
counts): id-core 3 (social_object_contract.rs:346 + navigation.rs:1456,1488
— navigation.rs is a new file added after the census base), id-web 3
(collab.rs:4207,4358 + collab.rs:4058 added after the census base),
id-import-notion 5, id-caps 2, id-events 5. chunks_exact_to_as_chunks 0
everywhere. Also adds temporary census/gate/test scripts under
pkgs/id/census-803-final/ (verification only, removed before the PR).
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|