Optimization #4591: Fix Rust clippy lints
Fix warning about "ptr_arg"
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 "ptr_arg", or along the lines of "writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices"
For more details on this warning, check
More information on the parent issue.