Skip to content

refactor: reduce match statement into an if-let statement#38

Open
deepsource-autofix[bot] wants to merge 1 commit intomainfrom
deepsource-autofix-b123dc18
Open

refactor: reduce match statement into an if-let statement#38
deepsource-autofix[bot] wants to merge 1 commit intomainfrom
deepsource-autofix-b123dc18

Conversation

@deepsource-autofix
Copy link

match statements with only one useful arm can be reduced to an if let statement.
This helps improve readability, an if let statement nests lesser than a match.

`match` statements with only one useful arm can be reduced to an `if let` statement.
This helps improve readability, an `if let` statement nests lesser than a `match`.
@deepsource-io
Copy link
Contributor

deepsource-io bot commented Apr 28, 2025

Here's the code health analysis summary for commits 256c598..e09c3f3. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Rust LogoRust❌ Failure
❗ 2 occurences introduced
🎯 12 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

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.

0 participants