Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy warning: #236

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Fix clippy warning: #236

merged 1 commit into from
Jul 17, 2024

Conversation

marxin
Copy link
Contributor

@marxin marxin commented Jul 17, 2024

warning: this manual char comparison can be written more succinctly
   --> src/rpm/filecaps.rs:120:37
    |
120 |         let index = match part.find(|c| c == '+' || c == '-' || c == '=') {
    |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using an array of `char`: `['+', '-', '=']`

```
warning: this manual char comparison can be written more succinctly
   --> src/rpm/filecaps.rs:120:37
    |
120 |         let index = match part.find(|c| c == '+' || c == '-' || c == '=') {
    |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using an array of `char`: `['+', '-', '=']`
```
@dralley dralley merged commit 2675213 into rpm-rs:master Jul 17, 2024
15 checks passed
@marxin marxin deleted the fix-clippy branch July 17, 2024 19:05
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