1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-11-30 10:40:50 +01:00

remove some slice indexing

This commit is contained in:
Robin Appelman 2024-04-07 16:10:11 +02:00
commit 1d71aa8ba6
9 changed files with 42 additions and 33 deletions

View file

@ -329,6 +329,7 @@ impl ParseSendTable {
// sort often changed props before the others
let mut start = 0;
for i in 0..flat.len() {
#[allow(clippy::indexing_slicing)]
if flat[i].parse_definition.changes_often() {
if i != start {
flat.swap(i, start);