mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
perf: dereference &&str to use specialized ToString implementation
This commit is contained in:
parent
81e028e1a0
commit
2836536842
1 changed files with 1 additions and 1 deletions
|
|
@ -282,7 +282,7 @@ fn parse_players_and_teams(packets: Vec<Vec<u8>>) -> GDResult<(Vec<Player>, Vec<
|
|||
}
|
||||
|
||||
let entry_data = data.get_mut(offset).ok_or(PacketBad)?;
|
||||
entry_data.insert(field_name.to_string(), item);
|
||||
entry_data.insert((*field_name).to_string(), item);
|
||||
|
||||
offset += 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue