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:
parent
e0ec7db236
commit
1d71aa8ba6
9 changed files with 42 additions and 33 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue