Skip to content

Fix this quarter's new clippy issue - #492

Merged
prozacchiwawa merged 2 commits into
mainfrom
20260603-fix-clippy
Jun 4, 2026
Merged

prozacchiwawa merged 2 commits into
mainfrom
20260603-fix-clippy

Conversation

@prozacchiwawa

@prozacchiwawa prozacchiwawa commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Note

Low Risk
Mechanical lint-driven refactor with equivalent control flow; no functional or security impact expected.

Overview
Updates OpCons::invoke in serialize.rs to satisfy a new Clippy lint by replacing nested pop().and_then(...) with popping the right item first, then matching on val_stack.pop().zip(item_b).

Behavior is unchanged: build a cons from two stack values when both pops succeed, otherwise return None.

Reviewed by Cursor Bugbot for commit eb2e99d. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit bb6e8cb. Configure here.

Comment thread src/classic/clvm/serialize.rs
@prozacchiwawa
prozacchiwawa merged commit 4d35ff0 into main Jun 4, 2026
37 checks passed
@prozacchiwawa
prozacchiwawa deleted the 20260603-fix-clippy branch June 4, 2026 01:47
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.

2 participants