1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

fix baseline diff

This commit is contained in:
Robin Appelman 2021-07-20 17:39:30 +02:00
commit 6f80468b6d

View file

@ -98,13 +98,9 @@ impl PacketEntity {
baseline: &'a [SendProp], baseline: &'a [SendProp],
) -> impl Iterator<Item = &'a SendProp> + 'a { ) -> impl Iterator<Item = &'a SendProp> + 'a {
baseline.iter().filter(move |prop| { baseline.iter().filter(move |prop| {
match baseline !baseline
.iter() .iter()
.find(|base_prop| base_prop.index == prop.index) .any(|base_prop| base_prop.index == prop.index && base_prop.value == prop.value)
{
Some(base_prop) => base_prop.value != prop.value,
None => true,
}
}) })
} }
} }