Skip to content

services: Fix the remaining clippy errors on the demo branch - #531

Merged
chrysh merged 2 commits into
OpenPRoT:ocp-global-demo-wipfrom
9elements:clippy-demo-branch
Oct 2, 2026
Merged

chrysh merged 2 commits into
OpenPRoT:ocp-global-demo-wipfrom
9elements:clippy-demo-branch

Conversation

@chrysh

@chrysh chrysh commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

#530 turned CI on for ocp-global-demo-wip and fixed the first clippy
error. Clippy stops at the first failing crate, so three more layers
were hiding behind it. Without these, every pull request against the
demo branch shows a red clippy run that is not its own.

config: a single-arm match becomes if let, and Region gains is_empty
next to len. pldm/server: ten test closures that only forwarded their
argument become the function itself. update-api: RequestHeader::len is a
wire field rather than a container length, so the lint is allowed in
place.

The docs commit fixes a mermaid diagram that failed to parse: a comma
inside a participant alias ends the alias. It does not fix the docs
build, which fails separately in mdbook-mermaid.

Assisted-by: Claude

chrysh added 2 commits October 2, 2026 14:01
Four crates, all reached only after the first clippy failure was fixed,
because clippy stops at the first failing crate. None of them had ever
been checked: no pull request against ocp-global-demo-wip ran CI.

config: a single-arm match becomes if let, and Region gains is_empty
next to len. pldm/server: ten test closures that only forwarded their
argument become the function itself. update-api: RequestHeader::len is a
wire field rather than a container length, so the lint is allowed in
place.

Assisted-by: Claude
A comma inside a sequenceDiagram participant alias ends the alias, so
Loopback<D, N> failed to parse and the diagram rendered as an error
box. The neighbouring participants carry no generics either.

This does not fix the docs build. mdbook-mermaid still exits 1 with
"Unable to parse the input", which is the preprocessor rejecting
mdbook's RenderContext, not a diagram.

Assisted-by: Claude
@chrysh
chrysh merged commit 251a16a into OpenPRoT:ocp-global-demo-wip Oct 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant