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

clippy fixes

This commit is contained in:
Robin Appelman 2023-06-03 18:30:30 +02:00
commit a561cbaf64
12 changed files with 345 additions and 398 deletions

View file

@ -161,6 +161,7 @@ impl PacketEntity {
if self.update_type == UpdateType::Enter {
let mut found_props = HashSet::<SendPropIdentifier>::new();
let props = self.props.iter().cloned();
#[allow(clippy::unnecessary_to_owned)]
let baseline_props = self
.get_baseline_props(parser_state)
.into_owned()

View file

@ -428,8 +428,8 @@ pub fn parse_string_table_update<'a>(
Ok(entries.into_entries())
}
pub fn write_string_table_update<'a>(
entries: &[(u16, StringTableEntry<'a>)],
pub fn write_string_table_update(
entries: &[(u16, StringTableEntry)],
stream: &mut BitWriteStream<LittleEndian>,
table_meta: &StringTableMeta,
) -> ReadResult<()> {