1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 02:24:12 +02:00

Applied a number of clippy suggestions

This commit is contained in:
Mark Blum 2021-08-27 02:34:51 -04:00
commit 7d5edd9de8
5 changed files with 9 additions and 13 deletions

View file

@ -168,7 +168,7 @@ impl RawGameEvent {
pub fn read(stream: &mut Stream, definition: &GameEventDefinition) -> Result<Self> {
let mut values: Vec<GameEventValue> = Vec::with_capacity(definition.entries.len());
for entry in &definition.entries {
values.push(read_event_value(stream, &entry)?);
values.push(read_event_value(stream, entry)?);
}
Ok(RawGameEvent {