rpm-rs / rpm

Other
47 stars 26 forks source link

Fix clippy warning: #236

Closed marxin closed 4 months ago

marxin commented 4 months ago
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`: `['+', '-', '=']`