Skip to content

chore(llm): fix collapsible_if warnings in Gemini SSE parser#1531

Open
SH20RAJ wants to merge 1 commit intomofa-org:mainfrom
SH20RAJ:chore/1295-collapse-gemini-if
Open

chore(llm): fix collapsible_if warnings in Gemini SSE parser#1531
SH20RAJ wants to merge 1 commit intomofa-org:mainfrom
SH20RAJ:chore/1295-collapse-gemini-if

Conversation

@SH20RAJ
Copy link
Copy Markdown

@SH20RAJ SH20RAJ commented Mar 28, 2026

Refactors nested conditionals in parse_gemini_sse() into a single let-chain condition, preserving behavior while addressing clippy::collapsible_if warnings.

Scope:

  • crates/mofa-foundation/src/llm/google.rs
  • no functional behavior changes

Closes #1295

@SH20RAJ
Copy link
Copy Markdown
Author

SH20RAJ commented Mar 28, 2026

Hi! Simple cleanup to address clippy::collapsible_if warnings in the Gemini SSE parser. Improving internal code quality and reducing lint noise. (Fixes #1295)

@SH20RAJ
Copy link
Copy Markdown
Author

SH20RAJ commented Mar 29, 2026

Code cleanup for GSoC 2026. This PR refactors nested conditionals in parse_gemini_sse() into a single let-chain condition, resolving clippy::collapsible_if warnings. This improves codebase readability and maintainability without changing functional behavior. (Closes #1295) ✨

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.

chore: Fix clippy::collapsible_if warnings in Gemini SSE parser

1 participant