Optimization #4591: Fix Rust clippy lints
Fix warning about "match ref pats"
Beginner, Good First Issue, Outreachy, Rust
We are working on cleaning our Rust code from lint warnings.
For resolving this issue, please check the rust code and fix warnings related to "you don't need to add `&` to both the expression and the patterns".
For more details on this warning, check
More information on the parent issue.