Skip to content

Fix remove_unused_variable rule bug with used unassigned variables#275

Merged
jeparlefrancais merged 1 commit into
mainfrom
fix-remove-unused-variable-bug
Jun 19, 2025
Merged

Fix remove_unused_variable rule bug with used unassigned variables#275
jeparlefrancais merged 1 commit into
mainfrom
fix-remove-unused-variable-bug

Conversation

@jeparlefrancais

@jeparlefrancais jeparlefrancais commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

Closes #209

Fixed the remove_unused_variable rule to correctly handle trailing unassigned but used variables.

  • add entry to the changelog

@github-actions

Copy link
Copy Markdown

Coverage after merging fix-remove-unused-variable-bug into main will be

86.76%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
src/rules
   remove_unused_variable.rs97.14%100%100%96.82%146, 177–180, 182–183

@jeparlefrancais jeparlefrancais merged commit 841ff6a into main Jun 19, 2025
6 checks passed
@jeparlefrancais jeparlefrancais deleted the fix-remove-unused-variable-bug branch June 19, 2025 20:59
@jeparlefrancais jeparlefrancais mentioned this pull request Aug 11, 2025
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.

remove_unused_variable incorrect behavior

1 participant