refactor(ironrdp-web): fix `indexing_slicing` clippy lint warnings
Checks for usage of indexing or slicing that may panic at runtime.
This one is quite pedantic and changes the way we write the code, but on the other hand, it makes the code more panic-resistant. Fixed the lint warnings only for ironrdp-web to see early feedback on it.
If we agree on adding it, I will add this lint for each crate separately, because there are too many warnings to do in 1 PR:
Coverage Report :robot: :gear:
Past: Total lines: 30217 Covered lines: 18800 (62.22%)
New: Total lines: 30217 Covered lines: 18800 (62.22%)
Diff: +0.00%
[this comment will be updated automatically]
@CBenoit Does it look good? Should we proceed with adding this lint?
I want to double check a little bit more before merging this.
I’m putting back this PR on my TODO review list.