Skip to content

Fix clippy rule violation - #1688

Open
Steve Lee (SteveL-MSFT) wants to merge 4 commits into
PowerShell:mainfrom
SteveL-MSFT:clippy-fix
Open

Fix clippy rule violation#1688
Steve Lee (SteveL-MSFT) wants to merge 4 commits into
PowerShell:mainfrom
SteveL-MSFT:clippy-fix

Conversation

@SteveL-MSFT

Copy link
Copy Markdown
Member

PR Summary

Clippy rule change caught this issue. Fix is to have the variable initialization happen immediately.

Copilot AI lite review requested due to automatic review settings August 21, 2026 23:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a new Clippy lint in the DSC library’s int function implementation by initializing value directly at declaration time, keeping the existing parsing/casting behavior intact.

Changes:

  • Refactored value assignment into a single let value: i64 = if ... { ... } else if ... { ... } else { ... }; expression.
  • Removed the separate declaration plus later assignment pattern that Clippy flagged.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Steve Lee (POWERSHELL HE/HIM) (from Dev Box) and others added 3 commits August 21, 2026 18:15
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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